Code Monkey home page Code Monkey logo

Comments (7)

dbr avatar dbr commented on August 17, 2024

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.

kTitan avatar kTitan commented on August 17, 2024

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.

dbr avatar dbr commented on August 17, 2024

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.

kTitan avatar kTitan commented on August 17, 2024

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.

kTitan avatar kTitan commented on August 17, 2024

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.

dbr avatar dbr commented on August 17, 2024

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.

dbr avatar dbr commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.