mirror of
https://github.com/beetbox/beets.git
synced 2026-01-05 07:23:33 +01:00
arrange decoder
This commit is contained in:
parent
14e1b33839
commit
8df2e5b8f5
1 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ class AlbumInfo(Map):
|
|||
'media', 'discogs_albumid', 'discogs_labelid',
|
||||
'discogs_artistid']:
|
||||
value = getattr(self, fld)
|
||||
if type(value) == str:
|
||||
if isinstance(value, bytes):
|
||||
if isinstance(value, bytes):
|
||||
setattr(self, fld, value.decode(codec, 'ignore'))
|
||||
|
||||
|
|
@ -225,7 +225,7 @@ class TrackInfo(Map):
|
|||
for fld in ['title', 'artist', 'medium', 'artist_sort', 'disctitle',
|
||||
'artist_credit', 'media']:
|
||||
value = getattr(self, fld)
|
||||
if type(value) == str:
|
||||
if isinstance(value, bytes):
|
||||
if isinstance(value, bytes):
|
||||
setattr(self, fld, value.decode(codec, 'ignore'))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue