Page 1 of 1

0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: November 30th, 2013, 11:06 am
by evster666
Hi sabnzbd'ler

just what the topic says...

some sys specs:
xubuntu 13.x, tmux inside xfce terminal, 4gb ram

language config:

Code: Select all

LANG=de_DE.UTF-8
LANGUAGE=de_DE:en
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
command called:

sudo service sabnzbdplus stop
sabnzbdplus --repair-all

breaks with nzbqueue.py and encoding.py if you got a file with an "umlaut" for example "ä" "ö" or "ü".
fix would be defining utf8 or unicode and escape the title and path strings (i.e. using urlencode)

fastfix for noncoders:
sudo service sabnzbdplus stop
remove all folders with weird chars from ~/.sabnzbd/incomplete or ~/.sabnzbd/incoming
sabnzbdplus --repair-all
ctrl+c
sudo service sabnzbdplus start

Re: 0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: November 30th, 2013, 11:23 am
by sander
Can you describe what happens?

I can't reproduce any problem with a NZB "Sehet ungekürzt":

Code: Select all

sander@flappie:~/Downloads$ ll incomplete/
total 32
drwxrwxr-x  3 sander sander  4096 nov 30 17:20 ./
drwxr-xr-x 21 sander sander 20480 nov 30 17:19 ../
drwxrwxr-x  3 sander sander  4096 nov 30 17:20 Sehet ungekürzt/
sander@flappie:~/Downloads$ 
sander@flappie:~/Downloads$ sabnzbdplus --repair-all
... has no problems.

Re: 0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: November 30th, 2013, 11:30 am
by evster666
what ive got as an error:

Image

Re: 0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: November 30th, 2013, 5:00 pm
by sander
As said, I can't reproducte it with "Sehet ungekürzt" (see binsearch).

My locale:

Code: Select all

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=

Re: 0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: December 1st, 2013, 2:42 am
by evster666
well, maybe one of the devs has an idea whats been happening there.

i did the repair for a reason, the queue broke (after a crash of the system (power supply problems) and the fail of the autoremount of the partition holding the queue).

Re: 0.7.3 - 0.7.16 + python2.7 + --repair-all unicode broken

Posted: December 1st, 2013, 2:47 am
by sander
If you can reproduce the problem, maybe you can try SAB 0.8.x pre-alpha. I believe 0.8.x has a lot of Unicode improvements.

See https://forums.sabnzbd.org/viewtopic.php?f=11&t=13857