Post processing issue with SickBeard

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Post processing issue with SickBeard

Post by ditziwill »

Hello everyone.

I have been trying to set up SABnzbd with Sickbeard using this tutorial: http://www.youtube.com/watch?v=6jy6GWJ9pl4

I can add shows to the Download perfectly fine but when it comes to post processing I get this error:

Exit(1) SyntaxError: Non-ASCII character ’\xc6’ in file /Users/**********-**********/Library/Application Support/SABnzbd/scripts/sabToSickBeard.py on line 2,

When I look at the log this is what it says:

File "/Users/************-************/Library/Application Support/SABnzbd/scripts/sabToSickBeard.py", line 1
SyntaxError: Non-ASCII character '\xc6' in file /Users/****************-*************/Library/Application Support/SABnzbd/scripts/sabToSickBeard.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

I have tried fiddling around to sort this but 2 days later I have gotten nowhere. Any Ideas?

(NOTE: the ************* represent my name and - is because my name is double barrelled.)

Looking forward to your responses.

All the best

w
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

Version: 0.7.11
OS: OSX
Install-type: OSX app
Skin (if applicable): Default
Firewall Software: None
Are you using IPV6? bo
Is the issue reproducible? Unsure
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post processing issue with SickBeard

Post by shypike »

Differences in character encoding.
Try to avoid accented characters like é and è in your titles.
SABnzbd always uses ISO 8859-1 encoding, I don't know what SickBeard expects.
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

thats what i don't understand, there is nothing in the script like that. All the characters are ascii
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post processing issue with SickBeard

Post by shypike »

It's about the parameters that SABnzbd sends to the script.
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

Thanks for replying however I'm not sure im with you.

What do I need to change?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post processing issue with SickBeard

Post by shypike »

If a job title has "foreign" characters, SABnzbd sends them as 8-bit encoded characters in the ISO 8859-1 set.
That's the only way for scripts.
It looks like SickBeard doesn't know what to do with such characters.
Please ask on their forum as well.
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

Do you mean the file name that I am downloading? For example: South.​Park.​S06E17.​720p.​WEB-DL.​DD2.​0.​AVC-jhonny2 is one that has failed but those characters all look fine to me.

( I do own this episode on dvd but want a digital copy )
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post processing issue with SickBeard

Post by shypike »

OK, so my hunch is wrong.
I assume that no foreign characters are present in things like category name?

Looking at the error message again.
It looks more like the Python interpreter is complaining about the SabToSickBeard.py script itself.
Open it and check what the first few lines look like.
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

THis is the script: (Could it be the Hyphen in my name messing everything up?

#!/usr/bin/env python

# Author: Nic Wolfe <nic@wolfeden.ca>
# URL: http://code.google.com/p/sickbeard/
#
# This file is part of Sick Beard.
#
# Sick Beard is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Sick Beard is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Sick Beard. If not, see <http://www.gnu.org/licenses/>.


import sys
import autoProcessTV

if len(sys.argv) < 2:
print "No folder supplied - is this being called from SABnzbd?"
sys.exit()
elif len(sys.argv) >= 3:
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2])
else:
autoProcessTV.processEpisode(sys.argv[1])
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: Post processing issue with SickBeard

Post by shypike »

What happens if you run this script straight from a command prompt?
ditziwill
Newbie
Newbie
Posts: 7
Joined: April 3rd, 2013, 4:59 pm

Re: Post processing issue with SickBeard

Post by ditziwill »

I don't know how to do that. Also im using mac so I assume i will need to run this from terminal?
Post Reply