SickRage Unicode Exception errors

Status
Not open for further replies.

Supa

Patron
Joined
Jan 10, 2014
Messages
204
2015-11-11 22:28:06 POSTPROCESSER :: Exception generated in thread POSTPROCESSER: ascii : /media/tv/xxxx.mkv : error 56 : error 57 : ordinal not in range(128)

I'll get something like that and then the postprocessor will turn off and it won't turn back on unless I restart the plugin.

utf-8/unicode chars aren't correctly transmitted to python functions

I think I might have to do this: https://sickrage.tv/forums/forum/he...le-s-are-set-properly-to-avoid-unicode-issues

But I don't really understand it.


Where do I find ~/.bashrc and ~/.profile ?

Basically once I find those files I just add these lines of code:

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

And then run this command:

source ~/.bashrc
 
Last edited:
D

dlavigne

Guest
The ~ represents the user's home directory. If bash is installed, .bashrc should already exist in the user's home directory, otherwise use (or create) a file named .profile. Since both these files start with a dot, they are hidden unless you use ls -a to see the contents of that directory.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
since SickRage run from the init script as the 'media' user (which by default had no home directory). it might be best to run whatever pre-commands in the prestart routine in the init script (/usr/local/etc/rc.d/sickrage)

also realize the init script uses sh not bash so you may need to adjust commands accordingly.
 

Supa

Patron
Joined
Jan 10, 2014
Messages
204
since SickRage run from the init script as the 'media' user (which by default had no home directory). it might be best to run whatever pre-commands in the prestart routine in the init script (/usr/local/etc/rc.d/sickrage)

also realize the init script uses sh not bash so you may need to adjust commands accordingly.
here'san example of this where I solved this for subsonic before, all I did was set LC_CTYPE
https://github.com/josh4trunks/free...r/ports/multimedia/subsonic/files/subsonic.in


Yeah man.. I have no idea.. I can't even find that folder.

73PXsPo.png


You're saying I can edit that script and drop it into the rc.d/sickrage folder?

I guess i'll have to find it first.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I see it right there at the bottom, the folder looking think called sickrage with Permissions "lrwxr-xr-x"
It's actually a link to /usr/pbi/sickrage-amd64/etc/rc.d/sickrage in the jail.

Since it's an absolute symlink accessing the link through a program running on the host doesn't link properly. So you might want to just edit "/usr/pbi/sickrage-amd64/etc/rc.d/sickrage"
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So what exactly do I need to use from your example?

I just don't understand the code or what it's doing.

Might just find an alternative.
add this to the prestart routine
Code:
export LC_CTYPE="en_US.UTF-8"
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I thought that was just in the sickrage_prestart(){} routine.
ohh, you did it correctly. I just didn't notice you already did it.
 

ClayM

Explorer
Joined
Mar 4, 2013
Messages
67
just sticking it up at the top works too.

recommend putting this in the next plugin update, along with the repo change.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
was this always a problem or sknehjnf that just recently became an issue. im wonderung if could this be mitigated on the application side.
 

ClayM

Explorer
Joined
Mar 4, 2013
Messages
67
It looks like it's a new thing, but introduced as part of an effort to support other languages. It's probably a good idea to specify a locale, yes?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
It looks like it's a new thing, but introduced as part of an effort to support other languages. It's probably a good idea to specify a locale, yes?
I think by making it uft-8 it opens up the characters the program can read/write and seems to fix stuff according to a thread on SickRage's forum. I went ahead and made the change. Waiting for a possible bug fix before release the updated sickrage plugin though.
 

ggoldfingerd

Explorer
Joined
Dec 28, 2014
Messages
51
I think by making it uft-8 it opens up the characters the program can read/write and seems to fix stuff according to a thread on SickRage's forum. I went ahead and made the change. Waiting for a possible bug fix before release the updated sickrage plugin though.

Perfect, glad to see this change incorporated for the next update. Thanks.
 
Status
Not open for further replies.
Top