2012-07-07, 20:56
Hit a bit of a problem with file names
I'm running on a version downloaded 2012-07-01 with hash b7f1d283
I downloaded Deja Vu
CP Picked the download up and did a lookup, perfect so far
Then it all went a bit pear shaped. The IMDB search appears to have returned odd (but expected) characters - Déjà Vu
This lead to issues with the file moving
This warning repeats for quite some time until finally
It looks like an RE or something similar is required to check for special chars returned from name lookups.....
I'm running on a version downloaded 2012-07-01 with hash b7f1d283
I downloaded Deja Vu
CP Picked the download up and did a lookup, perfect so far
Then it all went a bit pear shaped. The IMDB search appears to have returned odd (but expected) characters - Déjà Vu
This lead to issues with the file moving
Code:
06-25 00:41:53 INFO [tato.core.plugins.scanner] Found 1 movies in the folder /remote_shares/QDownload/sabnzbd/complete
06-25 00:41:53 INFO [hpotato.core.plugins.base] Opening url: http://www.imdbapi.com/?i=tt0453467, params: []
06-25 00:41:53 INFO [hpotato.core.plugins.base] Opening url: http://couchpota.to/api/eta/tt0453467/, params: []
06-25 00:41:54 INFO [e.providers.movie.imdbapi] Found: Deja Vu (2006)
06-25 00:41:55 INFO [hpotato.core.plugins.base] Opening url: http://cf2.imgobject.com/t/p/original/abqvTL8xYQLgAtQGmyN7UxvCRGN.jpg, params: []
06-25 00:41:59 INFO [hpotato.core.plugins.base] Opening url: http://cf2.imgobject.com/t/p/w185/abqvTL8xYQLgAtQGmyN7UxvCRGN.jpg, params: []
06-25 00:41:59 INFO [hpotato.core.plugins.base] Opening url: http://cf2.imgobject.com/t/p/original/pGyEMPwTcrCpRQpjJMiq9bUu7nz.jpg, params: [
]06-25 00:42:03 INFO [tato.core.plugins.renamer] Removing "/remote_shares/QDownload/sabnzbd/complete/Deja Vu (2006) (2 CD)/dmd-dejavu-cd2.sfv"
06-25 00:42:03 INFO [tato.core.plugins.renamer] Removing "/remote_shares/QDownload/sabnzbd/complete/Deja Vu (2006) (2 CD)/dmd-dejavu-cd1.sfv"
06-25 00:42:03 INFO [tato.core.plugins.renamer] Renaming "/remote_shares/QDownload/sabnzbd/complete/Deja Vu (2006) (2 CD)/dmd-dejavu-cd2.avi" to "/remote_shares/filestoreii/Movies/Déjà Vu (2006)/Déjà Vu cd2.avi"
06-25 00:42:03 ERROR [tato.core.plugins.renamer] Couldn't move file "/remote_shares/QDownload/sabnzbd/complete/Deja Vu (2006) (2 CD)/dmd-dejavu-cd2.avi" to "/remote_shares/filestoreii/Movies/Déjà Vu (2006)/Déjà Vu cd2.avi":
Traceback (most recent call last):
File "/home/steve/CouchPotatoServer/couchpotato/core/plugins/renamer/main.py", line 406, in moveFile
shutil.move(old, dest)
File "/usr/lib/python2.7/shutil.py", line 280, in move
if os.path.isdir(dst):
File "/usr/lib/python2.7/genericpath.py", line 41, in isdir
st = os.stat(s)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 35: ordinal not in range(128)
Code:
07-02 11:31:49 INFO [tato.core.plugins.renamer] Renamer is disabled to avoid infinite looping of the same error.
It looks like an RE or something similar is required to check for special chars returned from name lookups.....