summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-02-15 13:29:24 +0100
committerRasmus Steinke <rasi@xssn.at>2015-02-15 13:29:24 +0100
commitf082934f3ecfdf55bd65cd0c2a6310c60c9a06cb (patch)
tree311759af6207b9b8a503fc6d005464df50561aec
parent9b34b32116428bdf74e341490b27efd7dae7d7c5 (diff)
downloadmppc-f082934f3ecfdf55bd65cd0c2a6310c60c9a06cb.tar.gz
mppc-f082934f3ecfdf55bd65cd0c2a6310c60c9a06cb.tar.bz2
work around beets stupid duplicate tags
-rwxr-xr-xmppc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mppc b/mppc
index e855efa..047e883 100755
--- a/mppc
+++ b/mppc
@@ -163,7 +163,7 @@ def trackCache(args):
for artist in artistlist:
try:
for element in client.find('artist', artist):
- fh.write(element['artist']+os.getenv('seperator')+element['track']+os.getenv('seperator')+element['title']+os.getenv('seperator')+element['album']+"\n")
+ fh.write(element['artist']+os.getenv('seperator')+element['track'][0]+os.getenv('seperator')+element['title']+os.getenv('seperator')+element['album']+"\n")
except KeyError:
errors.add(element['file'])
except TypeError: