Skip to content

Commit 468907c

Browse files
committed
v0.6.2
1 parent 9525666 commit 468907c

File tree

7 files changed

+29
-12
lines changed

7 files changed

+29
-12
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
v0.6.2
55
------
66

7+
- [x] Fix: Issue #1 in Github
78
- [x] Added key-binding(`u`) for reloading `music_dir`
89
- [x] Fix: All option are now aligned properly in preferences view
910
- [x] Added validators for preferences(Error message is shown if an error occurs)

README.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ Made with a lot of help from
1313

1414
## Changelog
1515

16-
### v0.6.2
16+
v0.6.2
17+
------
1718

18-
- Added key-binding(`u`) for reloading `music_dir`
19-
- Fix: All option are now aligned properly in preferences view
20-
- Added validators for preferences(Error message is shown if an error occurs)
19+
- [x] Fix: Issue #1 in Github
20+
- [x] Added key-binding(`u`) for reloading `music_dir`
21+
- [x] Fix: All option are now aligned properly in preferences view
22+
- [x] Added validators for preferences(Error message is shown if an error occurs)
2123

22-
### v0.6.1
24+
v0.6.1
25+
------
2326

24-
- Add track number to preview format option in preferences
27+
- [x] Add track number to preview format option in preferences
2528

2629

2730
## Installation
@@ -55,12 +58,12 @@ You can then launch the app by entering `clid` in the command line.
5558

5659
The main window will show the mp3 files you have in `~/Music`. The interface is similar to that of cmus:
5760

58-
![clid main window](./img/main.png "The Main Window")
61+
![clid main window](./img/main.png "Main Window")
5962

6063
You will have a command line at the bottom of the window, to recieve commands. You will also see a live preview of the
6164
common tags of the file under the cursor.
6265

63-
> Note: The status line shows the tags in `artist - album - track_number title` format
66+
> Note: The status line shows the tags in `artist - album - track_number title` format by default; you can change it in preferences
6467
6568
### Editing Tags
6669

@@ -76,7 +79,21 @@ Use the arrow keys to move through the tags; edit them if needed and hit `OK`(or
7679
To edit preferences, press `2`. Then hit <kbd>Enter</kbd> on the highlighted setting to edit it (it will be then shown
7780
at the bottom of the screen; edit it and hit <kbd>Enter</kbd> again).
7881

82+
![clid preferences](./img/pref.png "Preferences Window")
83+
7984
| Option | You should set this as... | Default Value|
8085
|--------|-------|---------|
8186
| `music_dir` | Directory in which the app will search for mp3 files | `~/Music` |
8287
| `preview_format` | Format in which a preview of the file under cursor will be shown | `%a - %l - %n. %t` |
88+
89+
#### Supported Format Specifiers
90+
91+
| Format Specifier | Expands to... |
92+
|:----------------:|:-------------:|
93+
| %t | Title |
94+
| %a | Artist |
95+
| %l | Album |
96+
| %n | Track Number |
97+
| %c | Comment |
98+
| %A | Album Artist |
99+
| %y | Date |

clid/database.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,15 @@ def parse_meta_for_status(self, filename):
8181
Args:
8282
filename: the filename(*not* the absolute path)
8383
"""
84+
temp = self.pre_format # make a copy of format and replace specifiers with tags
8485
if not filename in self.meta_cache:
8586
try:
8687
meta = stagger.read_tag(self.file_dict[filename])
87-
temp = self.pre_format # make a copy of format and replace specifiers with tags
88-
8988
for spec in self.specifiers: # str to convert track number to str if given
9089
temp = temp.replace(spec, str(getattr(meta, _const.FORMAT[spec])))
9190
self.meta_cache[filename] = temp
9291
except stagger.errors.NoTagError:
93-
self.meta_cache[filename] = _const.FORMAT_PAT.sub('', self.specifiers)
92+
self.meta_cache[filename] = _const.FORMAT_PAT.sub('', temp)
9493

9594
return self.meta_cache[filename]
9695

clid/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
__version__ = '0.6.3'
3+
__version__ = '0.6.2'
44

55
import os
66
import curses

img/edit.png

-349 Bytes
Loading

img/main.png

-329 Bytes
Loading

img/pref.png

21.4 KB
Loading

0 commit comments

Comments
 (0)