My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 38: If artist name contains "/" char in ID3-tag indexing fails.
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  xiretal
Type-Enhancement
Priority-Medium


Sign in to add a comment
 
Reported by xiretal, Feb 21, 2008
If there is an mp3 file that has ID3-tag and the artist field contains "/"
character, then our indexer fails to index that file. I suppose that there
is a same problem if album field contains this charcter.

Here is the exception trace:

Exception in thread IndexerThread:
Traceback (most recent call last):
  File "threading.py", line 460, in __bootstrap
    self.run()
  File
"/home/late/projects/entertainer/src/backend/components/mediacache/indexer_thread.py",
line 84, in run
    cache.addDirectory(element)
  File
"/home/late/projects/entertainer/src/backend/components/mediacache/music_cache.py",
line 153, in addDirectory
    self.addFile(os.path.join(root, name))
  File
"/home/late/projects/entertainer/src/backend/components/mediacache/music_cache.py",
line 96, in addFile
    self.__addMP3file(filename)
  File
"/home/late/projects/entertainer/src/backend/components/mediacache/music_cache.py",
line 346, in __addMP3file
    self.__searchAlbumArt(artist, album, filename)
  File
"/home/late/projects/entertainer/src/backend/components/mediacache/music_cache.py",
line 443, in __searchAlbumArt
    shutil.copyfile(filename[:filename.rfind('/')+1]+"folder.jpg",
album_art_file)
  File "shutil.py", line 47, in copyfile
    fdst = open(dst, 'wb')
IOError: [Errno 2] No such file or directory:
u'/home/late/.entertainer/cache/album_art/To/Die/For - A Tribute to
Scorpions.jpg'



 
Comment 1 by xiretal, Feb 21, 2008
In the above exmaple we have a mp3 file where artist name is "To/Die/For".
Comment 2 by laymansterms.dev, Mar 25, 2008
Note that this will also occur if the album contains as a slash (something I
encountered first hand) because the album tag is part of the album art filename too.
Sign in to add a comment

Hosted by Google Code