X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/9d71de7286724a92e76c9e11cd2bccda618b4512..db5022f9ba379ff26a4ce63ce6f6670fd38adf08:/flac2mp3 diff --git a/flac2mp3 b/flac2mp3 index 982a012..999fd66 100755 --- a/flac2mp3 +++ b/flac2mp3 @@ -62,8 +62,11 @@ from org.diplodocus.util import run_or_die # The child processes def flac2mp3(fn, title, artist, album, date, track, skip_until, pics=None): - (title, artist, album, date) = [(x == None and 'unknown') or x - for x in (title, artist, album, date)] + (title, artist, album) = [(x == None and 'unknown') or x + for x in (title, artist, album)] + if date == None: + date = '' + try: (skip_arg, until_arg) = skip_until except ValueError: @@ -172,6 +175,7 @@ class Tags(object): return None return '\n'.join(value) def set(self, key, value, track=None): + key = key.upper() if track not in self._tags: self._tags[track] = {} if key not in self._tags[track]: