CoverLovin crashes with UnicodeDecodeError

Bug #1195825 reported by Max Schillinger
6
This bug affects 1 person
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/coverlovin$ ./coverlovin.py /media/E/Musik/Alben/ -s large
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.exit(main())
  File "./coverlovin.py", line 256, in main
    musicDirs = process_dir(musicDir, coverFiles=coverFiles)
  File "./coverlovin.py", line 150, in process_dir
    results = process_dir(dir, results=results, coverFiles=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).

Revision history for this message
Max Schillinger (maxschillinger) wrote :

I have applied a litte workaround. I have put a try/except block around line 173-175 in coverlovin.py:

        if artist or album:
   try:
            log.info("album details found: %s/%s in %s" % (artist, album, file))
            results.append((thisDir, artist, album))
            return results
          except Exception, err:
            log.error('exception: ' + str(err))
            continue

So CoverLovin has found many covers. Thanks for that great tool!

Revision history for this message
Erl (meyer-uwe) wrote :

This worked great for me !

Thank you

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.