CoverLovin crashes with UnicodeDecodeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CoverLovin |
New
|
Undecided
|
Unassigned |
Bug Description
When I run CoverLovin with my music folder, I get this output:
~/Downloads/
album details found: Absolute Beginner/Bambule in 01 Das Boot.mp3
...
album details found: Die Ärzte/ in Die Ärzte - 3-Tage-Bart.mp3
Traceback (most recent call last):
File "./coverlovin.py", line 273, in <module>
sys.
File "./coverlovin.py", line 256, in main
musicDirs = process_
File "./coverlovin.py", line 150, in process_dir
results = process_dir(dir, results=results, coverFiles=
File "./coverlovin.py", line 173, in process_dir
log.info("album details found: %s/%s in %s" % (artist, album, file))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 25: ordinal not in range(128)
/media/E is a NTFS partition (just in case it matters).
I have applied a litte workaround. I have put a try/except block around line 173-175 in coverlovin.py:
if artist or album:
log. info("album details found: %s/%s in %s" % (artist, album, file))
results. append( (thisDir, artist, album))
log. error(' exception: ' + str(err))
continue
try:
return results
except Exception, err:
So CoverLovin has found many covers. Thanks for that great tool!