X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/06b03f37a431a7e9763ee0306edad5a8946dfa84..6c58deb659519e8e298a4e65e340a50ba37d6175:/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]: