summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-02-15 19:39:13 +0100
committerRasmus Steinke <rasi@xssn.at>2015-02-15 19:39:13 +0100
commita91819603c191de20bb66b7f5c2aa3d1e99326b7 (patch)
treed82f38f52452abed9a5c15efd1d0a69cfc323ea7
parent9061d9dc13539645094ce8b76022af0fbe7782bd (diff)
downloadmppc-a91819603c191de20bb66b7f5c2aa3d1e99326b7.tar.gz
mppc-a91819603c191de20bb66b7f5c2aa3d1e99326b7.tar.bz2
final fix for beets crappy tags
-rwxr-xr-x[-rw-r--r--]mppc8
1 files changed, 2 insertions, 6 deletions
diff --git a/mppc b/mppc
index d011b93..0cc3f4e 100644..100755
--- a/mppc
+++ b/mppc
@@ -181,8 +181,6 @@ def trackCache(args):
def albumCache(args):
artistlist=client.list('albumartist')
content = set()
- errors = set()
- errors2 = set()
fields = ('albumartist', 'date', 'album')
fh = open(os.getenv('HOME')+'/.config/clerk/album.cache', "w")
for artist in artistlist:
@@ -205,8 +203,6 @@ def albumCache(args):
def lastCache(args):
artistlist=client.list('albumartist')
content = set()
- errors = set()
- errors2 = set()
fields = ('last-modified', 'date', 'albumartist', 'album')
fh = open(os.getenv('HOME')+'/.config/clerk/last.cache', "w")
seen = set()
@@ -222,11 +218,11 @@ def lastCache(args):
else:
elementvalues.append(fieldvalue)
# alle felder wurden abgegrast
- content.add(os.getenv('seperator').join(elementvalues))
+ content.add(tuple(elementvalues))
for element in sorted(content, key=lambda elem: elem[0], reverse=True):
if element[1:] not in seen:
line = element[1:]
- fh.write(line)+"\n")
+ fh.write(os.getenv('seperator').join(line)+"\n")
seen.add(line)
fh.close()