-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if filename contains umlauts #17
Comments
Could you try with the latest git version? Don't seem to have the same error with it:
|
updated to commit: e96a5ea %% tvnamer testserieswithä_s01e01.avi Loading config: /root/.tvnamer.json #################### # Starting tvnamer # Found 1 episode #################### Traceback (most recent call last): File "/usr/bin/tvnamer-2.6", line 9, in load_entry_point('tvnamer==2.1', 'console_scripts', 'tvnamer')() File "/usr/lib64/python2.6/site-packages/tvnamer/main.py", line 363, in main tvnamer(paths = sorted(args)) File "/usr/lib64/python2.6/site-packages/tvnamer/main.py", line 280, in tvnamer processFile(tvdb_instance, episode) File "/usr/lib64/python2.6/site-packages/tvnamer/main.py", line 125, in processFile p("# Processing file: %s" % episode.fullfilename) File "/usr/lib64/python2.6/site-packages/tvnamer/utils.py", line 447, in fullfilename return u"%s.%s" % (self.filename, self.extension) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 14: ordinal not in range(128) |
Strange. Not sure what the code could be doing wrong to cause this.. Could you try doing:
..and comment the last line here? Also, what terminal emulator and filesytem are you using? |
Here is the wished output: >>> os.listdir(u".") [u'testserieswith\xe4_s01e01.avi'] I am using a ext4 filesystem and most time I access it with putty. |
Ok a new info. It look like the issue 22 here on github is a dupe of my problem. I tried what Antoniogra7 did and deleted my .tvnamer.json file. Then i created a new empty file { } and the error is here again. |
That is bizarre. I can reproduce the problem here - as soon as a config is specified (or picked up automatically, that error occurs. |
Aha! Problem was disappointingly simple... I was doing Just pushed change for this |
I have always this problem if I try to run tvnamer on a file which contain german umlauts in it.
Currently I am using tvnamer version 2.1 with python 2.6
The text was updated successfully, but these errors were encountered: