Closed phillipssc closed 3 years ago
I ran into this same issue. I managed to workaround it by editing the following line in my config file:
"normalize_unicode_filenames": true,
This does a simple convert from é
to e
.
While I would prefer to have the unicode characters in my filenames, this was an acceptable workaround for me.
Hmm, could you test with the latest version 2.5 release? Don't recall if there was anything to do with the non-ASCII support changed since 2.3, but latest version appears to work for me, under both Python 2.7 and 3.7:
$ touch 'Another Period S03E02.mp4'
$ tvnamer Another\ Period\ S03E02.mp4
####################
# Starting tvnamer
# Found 1 episode
####################
# Processing file: Another Period S03E02.mp4
# Detected series: Another Period (season: 3, episode: 2)
TVDB Search Results:
1 -> Another Period [en] # http://thetvdb.com/?tab=series&id=284219&lid=7 (default)
Automatically selecting only result
####################
Old filename: Another Period S03E02.mp4
New filename: Another Period - [03x02] - Séance.mp4
Rename?
([y]/n/a/q)
Renaming
New path: /Users/dbr/code/tvnamer/Another Period - [03x02] - Séance.mp4
rename /Users/dbr/code/tvnamer/Another Period S03E02.mp4 to /Users/dbr/code/tvnamer/Another Period - [03x02] - Séance.mp4
I've also noticed this issue with names with an apostrophe ' in it. Example is Tom Clancy's Jack Ryan which tvnamer fails to find on tvdb and when you force it with the --series-id= flag, it names it "Tom Clancy& # 39 ;s Jack Ryan" <-- I had to add spaces between the & and # and 39 because apparently this form properly translates that to an apostrophe.
I noticed a similar issue with '.'
Example: Magnum P. I. was failed to be identified. It searched for Magnum P I and didn't find any results for some reason. Works fine if I force the series name
Closing old ticket, don't think the encoding issue should still be a problem (especially in latest v4.0-dev under Python 3 as none of the ASCII string code will exist any more)
Example: Magnum P. I. was failed to be identified. It searched for Magnum P I and didn't find any results for some reason. Works fine if I force the series name
This is a different issue - not sure if it's improved in the last year or so, but the TVDB API search is fairly basic, and can be confused by differing punctuation (or even things like &
versus and
). Not much tvnamer
can do to work around this as a fix which might work for one show may break another
This is very much like the closed issue https://github.com/dbr/tvnamer/issues/16 but I have a recent version, 2.3 and upgrading to the latest was the fix for the closed issue. In my case, a returned episode title has the "é" character in it - which causes the script to fail.
The command is run through a script and tvnamer is launched as follows:
The tvnamer command line in the script works flawlessly except for this one episode so far. Please let me know if you need any more info...