mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-21 00:14:02 +01:00
Possible fix for unicodedecodeerrors in post processor
This commit is contained in:
@@ -461,8 +461,11 @@ def forcePostProcess():
|
|||||||
|
|
||||||
# Parse the folder names to get artist album info
|
# Parse the folder names to get artist album info
|
||||||
for folder in folders:
|
for folder in folders:
|
||||||
|
|
||||||
|
folder = unicode(folder)
|
||||||
|
|
||||||
albumpath = unicode(os.path.join(download_dir, folder))
|
albumpath = os.path.join(download_dir, folder)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
name, album, year = helpers.extract_data(folder)
|
name, album, year = helpers.extract_data(folder)
|
||||||
except:
|
except:
|
||||||
@@ -484,7 +487,6 @@ def forcePostProcess():
|
|||||||
logger.error('Can not get release information for this album')
|
logger.error('Can not get release information for this album')
|
||||||
continue
|
continue
|
||||||
if rgid:
|
if rgid:
|
||||||
rgid = unicode(rgid)
|
|
||||||
verify(rgid, albumpath)
|
verify(rgid, albumpath)
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user