Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

UnicodeDecodeError: 'ascii' codec can't decode byte #16

Closed
tenzion opened this issue Apr 20, 2017 · 11 comments
Closed

UnicodeDecodeError: 'ascii' codec can't decode byte #16

tenzion opened this issue Apr 20, 2017 · 11 comments

Comments

@tenzion
Copy link

tenzion commented Apr 20, 2017

Running latest version together with nzbget v18.0.22 on my Synology.
Is it possible to disable "Lower words" and "Upper words" altogether?

Thank you.

@hugbug
Copy link
Member

hugbug commented Apr 20, 2017

Have you tried setting options "LowerWords" and "UpperCase" to empty values?

@tenzion
Copy link
Author

tenzion commented Apr 21, 2017

Yes. It did not do any difference.
Problem is, this is a movie in a non-english language, and I can't put every single word into the list so that VideoSort can avoid a particular word or title...

@hugbug
Copy link
Member

hugbug commented Apr 21, 2017

I don't understand. Please provide an example of movie title and the result you get in VideoSort and the result you expect.

@tenzion
Copy link
Author

tenzion commented Apr 21, 2017

An example could be:
This is what I have: "Far til fire gi'r aldrig op (2005)"
and this is the result: "Far Til Fire Gi'R Aldrig Op (2005)"

It moves the file and folder alright, that works. But renaming does not.

@hugbug
Copy link
Member

hugbug commented Apr 21, 2017

and the result you expect.

This is missing in your post.

@tenzion
Copy link
Author

tenzion commented Apr 21, 2017

Eh.
Let me try again:
This is what I have: "Far til fire gi'r aldrig op (2005)"
and this is the result: "Far Til Fire Gi'R Aldrig Op (2005)"
All starting letters after the first "Far" have now been changed to upper letters.

@hugbug
Copy link
Member

hugbug commented Apr 21, 2017

And you still don't say what you want.
Assumung you want the letter case preserved as in original nzb name, you should use "%tT" instead of "%t". See description of formatting specifier.

@tenzion
Copy link
Author

tenzion commented Apr 21, 2017

Doh.
Sorry for not reading through the whole list with % options...
The first hit on the list was good enough for me apparently :-)
I see it now!
Thanks for the help!

@tenzion
Copy link
Author

tenzion commented Apr 21, 2017

Btw, just another question:
Fri Apr 21 2017 13:59:19 VideoSort: filename: /volume1/downloads/complete/movies/Far til fire_ Til søs (2012) - 1080p - DTS/Far til fire - Til soes (2012) 1080p - DTS.mkv
Fri Apr 21 2017 13:59:19 VideoSort: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)
Fri Apr 21 2017 13:59:19 VideoSort: matcher = guessit.matcher.IterativeMatcher(unicode(guessfilename), filetype='autodetect', options={'nolanguage': True, 'nocountry': True})

What could this indicate in the renaming process?
Using version:
PP-Script Version: 7.0-testing.

@tenzion tenzion changed the title Disable "Lower words" and "Upper words" UnicodeDecodeError: 'ascii' codec can't decode byte Apr 21, 2017
@hugbug
Copy link
Member

hugbug commented Apr 21, 2017

Please see #3. In the last post a fix is suggested. If you can try it and report back that would be great.

@hugbug
Copy link
Member

hugbug commented Apr 24, 2017

Closing this issue. For further discussion of UnicodeDecodeError please use #3.

@hugbug hugbug closed this as completed Apr 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants