barcode gets set to upc or ''

This commit is contained in:
Deez Nutz 2022-12-16 12:33:51 +01:00
parent 5f978acec7
commit 761555346b

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')