thedonvaughn/cover_grabber — Issue #1: Error walking through directories
Author: jorti
Created: 2011-12-09 10:21:23+00:00
State: open

I got this error while fetching the covers. It fails always in the same directory but I don't know which one.

Traceback (most recent call last):
File "/usr/bin/covergrabber", line 59, in
main()
File "/usr/bin/covergrabber", line 56, in main
media_walker = MediaDirWalker(opts["media_dir"], opts["overwrite"]).do_walk_path()
File "/usr/lib/python2.7/site-packages/cover_grabber/media_dir_walker.py", line 33, in do_walk_path
os.path.walk(self.path, self.process_dir, None)
File "/usr/lib64/python2.7/posixpath.py", line 237, in walk
walk(name, func, arg)
File "/usr/lib64/python2.7/posixpath.py", line 237, in walk
walk(name, func, arg)
File "/usr/lib64/python2.7/posixpath.py", line 229, in walk
func(arg, top, names)
File "/usr/lib/python2.7/site-packages/cover_grabber/media_dir_walker.py", line 58, in process_dir
downloader = LastFMDownloader(album_name, artist_name) # Set downloader type to be LastFM
File "/usr/lib/python2.7/site-packages/cover_grabber/lastfm_downloader.py", line 31, in __init__
self.url = self.format_url()
File "/usr/lib/python2.7/site-packages/cover_grabber/lastfm_downloader.py", line 35, in format_url
return self.LASTFM_URL.format(album_name=self.album_name)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128)