Merge branch '214-flac-no-mbid' into 'develop'

Resolve "Flac import fails if no MusicBrainz-ID present"

Closes #214

See merge request funkwhale/funkwhale!208
This commit is contained in:
Eliot Berriot 2018-05-22 21:57:44 +00:00
commit b36ed8a699
3 changed files with 13 additions and 1 deletions

View file

@ -30,7 +30,7 @@ def get_id3_tag(f, k):
def get_flac_tag(f, k):
try:
return f.get(k)[0]
return f.get(k, [])[0]
except (KeyError, IndexError):
raise TagNotFound(k)
@ -158,6 +158,9 @@ CONF = {
'musicbrainz_recordingid': {
'field': 'musicbrainz_trackid'
},
'test': {
'field': 'test'
},
}
},
}