diff --git a/deemix/types/Album.py b/deemix/types/Album.py index 9fee6f1..b3fa35b 100644 --- a/deemix/types/Album.py +++ b/deemix/types/Album.py @@ -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')