Comments (7)
Could you try with the latest git version? Don't seem to have the same error with it:
$ tvnamer testserieswithä_s01e01.avi
####################
# Starting tvnamer
# Found 1 episode
####################
# Processing file: testserieswithä_s01e01.avi
[...]
from tvnamer.
updated to commit: e96a5ea
and tried it. Same error :(
%% 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)
from tvnamer.
Strange. Not sure what the code could be doing wrong to cause this..
Could you try doing:
$ touch "testserieswithä_s01e01.avi"
$ python
>>> import os
>>> os.listdir(u".")
[u'testserieswitha\u0308_s01e01.avi']
..and comment the last line here?
Also, what terminal emulator and filesytem are you using?
from tvnamer.
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.
But if I remember it correctly it also happens if i use a gnome terminal.
from tvnamer.
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 it worked without any problems.
Then i created a new empty file
{ }
and the error is here again.
No matter what config options i put in, the error always comes again.
from tvnamer.
That is bizarre.
I can reproduce the problem here - as soon as a config is specified (or picked up automatically, that error occurs.
from tvnamer.
Aha! Problem was disappointingly simple...
I was doing [x.decode(...) for x in args]
when first parsing the arguments, but when a config is loaded, the arguments are re-parsed (with the config values as the new defaults), and these args were never decoded, thus the error
Just pushed change for this
from tvnamer.
Related Issues (20)
- rename episode given show name and episode title? HOT 3
- tvdb api now needs key HOT 3
- Problem reading user config file in default location HOT 3
- Extended versions not detected --order=dvd does not work HOT 1
- tvnamer fails whenpython version changes in brew HOT 1
- Filter results to a series_id_list
- Getting ImportError HOT 2
- TvdbAttributeNotFound HOT 2
- Series name isn't updated properly (wrong casing and missing apostrophe) HOT 2
- Errors when running tvnamer after apt-get install HOT 2
- Only first Episode gets renamed HOT 1
- Issue with UK version of 'The Office' HOT 3
- Can't convert Absolute Number to Season+Episode HOT 1
- Is there an easy way to generate filenames with not white spaces? HOT 1
- After python3.8 update I receive error HOT 15
- Way to rename based off of episode name? HOT 3
- tvnamer has trouble if show year is in the middle of filename
- resolving aired-date&time in filename to show-episode
- Can't find season 11 of Futurama HOT 1
- dvd order not working when using uppercase characters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tvnamer.