summaryrefslogtreecommitdiffstats
path: root/clerk_helper
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-08-29 21:33:33 +0200
committerRasmus Steinke <rasi@xssn.at>2015-08-29 21:33:33 +0200
commit6d0afb9f6f37e7980f6dd7ae3d160c7d0d61dba5 (patch)
tree29e5f85930a361570fb51d0de3bef6c7e939c4f6 /clerk_helper
parentf1f35782e7e6fad4e5629f9538a40a3aa11c4ddc (diff)
downloadperl-app-clerk-6d0afb9f6f37e7980f6dd7ae3d160c7d0d61dba5.tar.gz
perl-app-clerk-6d0afb9f6f37e7980f6dd7ae3d160c7d0d61dba5.tar.xz
first try at aligned input
Diffstat (limited to 'clerk_helper')
-rwxr-xr-xclerk_helper8
1 files changed, 4 insertions, 4 deletions
diff --git a/clerk_helper b/clerk_helper
index 6d9ce9a..fa6ce69 100755
--- a/clerk_helper
+++ b/clerk_helper
@@ -97,7 +97,7 @@ def createCache(args):
with open(os.getenv('HOME')+'/.config/clerk/latest.cache', "w") as cache_file:
for album in blist:
- cache_file.write(album['albumartist']+os.getenv('separator')+album['date']+os.getenv('separator')+album['album']+'\n')
+ cache_file.write(album['albumartist']+"\t("+album['date']+") - "+album['album']+'\n')
# create albums.cache
temp_albums=[]
@@ -105,7 +105,7 @@ def createCache(args):
albumlist=createRecentList(blist)
for album in albumlist:
- temp_albums.append(album['albumartist']+os.getenv('separator')+album['date']+os.getenv('separator')+album['album'])
+ temp_albums.append(album['albumartist']+"\t("+album['date']+") - "+album['album'])
final_albumlist=set(temp_albums)
blub=sorted(final_albumlist)
@@ -117,10 +117,10 @@ def createCache(args):
# create tracks.cache
tracklist=[]
for track in alist:
- taglist = ['date', 'artist', 'albumartist', 'album', 'track', 'title']
+ taglist = ['date', 'artist', 'albumartist', 'album', 'track', 'title', 'file']
track.update([(k, reduceToFstElm(v)) for (k, v) in track.items() if k in taglist])
- tracklist.append(track['artist']+os.getenv('separator')+track['date']+os.getenv('separator')+track['album']+os.getenv('separator')+track['track']+os.getenv('separator')+track['title'])
+ tracklist.append(track['artist']+" - ("+track['date']+") - "+track['album']+"\t"+track['track']+" - "+track['title']+"\t"+track['file'])
#
with open(os.getenv('HOME')+'/.config/clerk/tracks.cache', "w") as cache_file:
for track in tracklist: