summaryrefslogtreecommitdiffstats
path: root/clerk_helper
diff options
context:
space:
mode:
Diffstat (limited to 'clerk_helper')
-rwxr-xr-xclerk_helper9
1 files changed, 9 insertions, 0 deletions
diff --git a/clerk_helper b/clerk_helper
index dfed422..a6dd4a2 100755
--- a/clerk_helper
+++ b/clerk_helper
@@ -108,6 +108,15 @@ def createCache(args):
temp_albums=[]
albumlist=createAlbumsList(alist)
for album in albumlist:
+ if isinstance(album['albumartist'], list):
+ album['albumartist'] = album['albumartist'][0]
+
+ if isinstance(album['date'], list):
+ album['date'] = album['date'][0]
+
+ if isinstance(album['album'], list):
+ album['album'] = album['album'][0]
+
temp_albums.append(album['albumartist']+os.getenv('separator')+album['date']+os.getenv('separator')+album['album'])
final_albumlist=set(temp_albums)