diff options
author | Rasmus Steinke <rasi@xssn.at> | 2015-08-22 20:19:27 +0200 |
---|---|---|
committer | Rasmus Steinke <rasi@xssn.at> | 2015-08-22 20:19:27 +0200 |
commit | 988eab64c6ae06ab2ddde5713edb868b2fb9743b (patch) | |
tree | 42642ccc72ad60254c0170eb7f48add87dca565f | |
parent | 43f365f0e75318aa04c97fb1a6dd2cd5d10dcd41 (diff) | |
download | perl-app-clerk-988eab64c6ae06ab2ddde5713edb868b2fb9743b.tar.gz perl-app-clerk-988eab64c6ae06ab2ddde5713edb868b2fb9743b.tar.xz |
more list stupidity
-rwxr-xr-x | clerk_helper | 9 |
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) |