Error using unicode data from TVDB
See original GitHub issueTrying to clear up some Seaquest episodes, and tvnamer fails on one episode called “Give Me Liberté”
####################
# Processing file: SeaQuest DSV - 1x06 - Treasures of the Tonga Trench.avi
# Detected series: SeaQuest DSV (season: 1, episode: 6)
####################
Old filename: SeaQuest DSV - 1x06 - Treasures of the Tonga Trench.avi
New filename: SeaQuest DSV - [S01E06] - Give Me Liberté.avi
Traceback (most recent call last):
File "/usr/local/bin/tvnamer", line 9, in <module>
load_entry_point('tvnamer==2.2.1', 'console_scripts', 'tvnamer')()
File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 413, in main
tvnamer(paths = sorted(args))
File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 322, in tvnamer
processFile(tvdb_instance, episode)
File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 213, in processFile
doRenameFile(cnamer, newName)
File "/usr/local/lib/python2.7/dist-packages/tvnamer/main.py", line 91, in doRenameFile
cnamer.newName(newName, force = Config['overwrite_destination_on_rename'])
File "/usr/local/lib/python2.7/dist-packages/tvnamer/utils.py", line 966, in newName
if os.path.isfile(newpath):
File "/usr/lib/python2.7/genericpath.py", line 29, in isfile
st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 98: ordinal not in range(128)
Issue Analytics
- State:
- Created 11 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
An invalid XML character - TheTVDB.com
Hi, I'm trying to rename a serie with filebot, but I receive this error. I wrote on filebot forum but seems that is...
Read more >TVDB 'unable to connect to remove server' since August ...
TVDB scraping works fine on my other Kodi devices, like nvidia shield, but I'm getting "Unable to connect to remove server. would you...
Read more >tvdb_api/tvdb_api.py at master · dbr/tvdb_api - GitHub
Simple to use interface to TheTVDB.com API in Python - tvdb_api/tvdb_api.py at master · dbr/tvdb_api.
Read more >The TVDB Not Finding Episodes - FileBot
I've been getting and HTTP error 403 when using TheTVDB, ... Just a data point, but I was able to retrieve episodes multiple...
Read more >pytvdbapi Documentation - Read the Docs
Internally pytvdbapi works exclusively with unicode. That means that on Python 2. ... from pytvdbapi.error import TVDBIndexError.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to reproduce the issue several times with German-localized anime titles using vanilla tvnamer (so, not inside my script). Kämpfer is especially interesting since the original title is a German word (with an umlaut), and such it applies to all dubs.
However, Kampfer seems to redirect to the English dub of Kämpfer, and only that dub. Dutch, German, Portuguese and French are not offered at all.
(As a translator I cannot withhold the fact that Kämpfer=fighter and Kampfer=camphor. Swapping “ä” with “a” even makes it an entirely different term, because “ä” is not just a “long a”–like in Hungarian–or some kind of accent, but a separate letter and phoneme contracted from an “ae” ligature back in the days of movable types.)
My filesystem encoding (Linux+ext4):
The Unicode issue does not seem to be on sides of the TVDB API, as typing the series title in the website’s search field works as expected. However it is potentially a very serious issue with domestic series in places where an extended Latin or a non-Latin alphabet or writing system is used. That means, quite all of Eurasia except the British Isles.
Closing old tickets - newer versions shouldn’t have this exact problem at least, as the entire
unicode_helper.py
module has been removed in current development version. If it’s still an issue, best to make new ticket