Merge branch 'upc_may_be_empty' into 'main'

barcode gets set to upc or ''

See merge request RemixDev/deemix-py!1
This commit is contained in:
Deez Nutz 2022-12-16 11:36:34 +00:00
commit b92ef4d94c

View File

@ -79,7 +79,7 @@ class Album:
self.trackTotal = albumAPI['nb_tracks']
self.recordType = albumAPI.get('record_type', self.recordType)
self.barcode = albumAPI.get('upc', self.barcode)
self.barcode = albumAPI.get('upc', self.barcode) or ''
self.label = albumAPI.get('label', self.label)
self.explicit = bool(albumAPI.get('explicit_lyrics', False))
release_date = albumAPI.get('release_date')