EDIT:
It's fixed in the new version 1.1.1
Or, you could edit the file manually and add the following line above "if filename == self.musicdir + songdir + "/" + self.single_img_in_dir:":
songdir = os.path.dirname(self.songinfo.file)
so it ends up like this:
if self.single_img_in_dir and self.songinfo:
songdir = os.path.dirname(self.songinfo.file)
if filename == self.musicdir + songdir + "/" + self.single_img_in_dir:
return True
~/music/Band/Album/*.mp3
This is the console output
$ sonata
Taglib and tagpy not found, tag editing support disabled.
SOAPpy not found, fetching lyrics support disabled.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/sonata.py", line 2781, in set_image_for_cover
if self.filename_is_for_current_song(filename):
File "/usr/lib/python2.5/site-packages/sonata.py", line 2824, in filename_is_for_current_song
if filename == self.musicdir + songdir + "/" + self.single_img_in_dir:
NameError: global name 'songdir' is not defined