SickBeard: Automatic TV Show Download

See if your 3rd party software (such as backup software) is compatible with our product.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
User avatar
jmurre
Rookie
Rookie
Posts: 38
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

SickBeard: Automatic TV Show Download

Postby jmurre » Tue Aug 17, 2010 8:30 am

I have found this wonderful program called Sick Beard (http://code.google.com/p/sickbeard/) that, in combination with SABnzbd+, downloads the latest episodes of any TV show you can think of all automatically. Now the following guide is not from me, but I have tested it and it works on my Synology DS-209. Now, programming is more like trial and error for me, so support on this will be limited. Just enjoy!

Installation SickBeard on Synology (Source http://www.8h.nl/f/index.php?topic=15.120)

Synology Installation of Sick Beard, auto start on boot, and process of upgrading in future
Assumes you have installed SABnzbd with the Merty package: http://www.mertymade.com/syno/#sabnzbd (which includes Python).

First SSH into the NAS as root.

Install Bootstrap as described here, so that you get ipkg on there:
http://forum.synology.com/wiki/index.php/Installing_bootstrap_for_the_armmarvell_models

Code: Select all

# IPKG op de DS109 / DS210j (and other mv6281 kirkwood Synology's)
mkdir -p /volume1/@tmp
cd /volume1/@tmp/
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
sh syno-mvkw-bootstrap_1.2-7_arm.xsh &
sleep 5
ipkg update


install git so you can pull latest SB updates

Code: Select all

ipkg install git

(you could skip the previous step if you want, it makes it way easier to update in the future though)

Next go to the directory to where you want to install sickbeard. I put it on one of my hard drive volumes.

Code: Select all

cd /volume1/opt/share/sickbeard


Next you are going to pull the latest source revision of sickbeard

Code: Select all

git clone git://github.com/midgetspy/Sick-Beard.git sickbeard


To update it in the future (NOT NOW!), first shutdown sickbeard through its web interface, and then something like

Code: Select all

cd /volume1/opt/share/sickbeard/
git pull


To get sickbeard to start at system startup:

Code: Select all

vi /var/packages/sab2/target/scripts/sabstart.sh


then I added this line at end of file:
(note that my personal install path is /volume1/opt/share/sickbeard/)

Code: Select all

$DIR/utils/bin/python /volume1/opt/share/sickbeard/SickBeard.py --quiet &


In order to use sickbeard's post-processing scripts for sabnzbd, you should run this line in SSH terminal:

Code: Select all

ln -s /var/packages/sab2/target/utils/bin/python /usr/bin/python


Restart the device and sickbeard's web interface should be accessible at
http://synology-ip:8081

Note:
For DSM 3.0 beta users SABnzbd does not start anymore. There is a fix to get SABnzbd up and runnign again (thanks to Nightspirit):

Temporary quick fix using ipkg

Code: Select all

ipkg install python25 py25-cheetah py25-cherrypy


After that, edit the last line in /var/packages/sab2/target/scripts/sabstart.sh to

Code: Select all

/opt/bin/python2.5 $DIR/sab/SABnzbd.py -s ${IPaddr}:${port} -f $DIR/sab/sab.ini -d


For Sick Beard the following line should be added to the sabstart.sh script:

Code: Select all

/opt/bin/python2.5 /volume1/opt/share/sickbeard/SickBeard.py --quiet &


To add SSL options again use:

Code: Select all

ipkg install py25-openssl


Now restart and everything should be working again.
Last edited by jmurre on Wed Aug 18, 2010 8:23 am, edited 2 times in total.
groennom
I'm New!
I'm New!
Posts: 3
Joined: Thu Aug 12, 2010 9:41 am

Re: SickBeard: Automatic TV Show Download

Postby groennom » Tue Aug 17, 2010 9:13 pm

Thanks for this manual, I followed it step by step. Everything works, only Sickbeard won't start on restart of the Synology (DS1010+). When I execute the command manually Sickbeard starts, but not when added in sabstart.sh.

Second thing is that when I start sickbeard manually, the website (on 8081) is emptye. There are no entries.

Do you have an idea where to look to correct this error?
User avatar
jmurre
Rookie
Rookie
Posts: 38
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: SickBeard: Automatic TV Show Download

Postby jmurre » Wed Aug 18, 2010 7:12 am

groennom wrote:Thanks for this manual, I followed it step by step. Everything works, only Sickbeard won't start on restart of the Synology (DS1010+). When I execute the command manually Sickbeard starts, but not when added in sabstart.sh.

I must say that I have trouble myself with the program at the moment, but that is because I've upgraded to DSM 3.0 beta. Somehow SABnzbd doesn't work anymore in the new firmware and also Sick Beard stops working. I have a quickfix, but still issues with loading Sick Beard.

What I can see is that I have forgotten the '&' sign at the end of the line in the sabstart.sh script. So the actual line should be:

Code: Select all

$DIR/utils/bin/python /volume1/opt/share/sickbeard/SickBeard.py --quiet &


This should continue the startup of your Synology after loading Sick Beard.

groennom wrote:Second thing is that when I start sickbeard manually, the website (on 8081) is emptye. There are no entries.

Do you have an idea where to look to correct this error?

I don't know what you mean by this last question. You're saying you don't have any shows in your list or you don't see anything? There is a nice Wiki on the Sick Beard site that explains the workings and how to configure: http://code.google.com/p/sickbeard/wiki/HowToUseSickBeard.

Hope this helps you.
groennom
I'm New!
I'm New!
Posts: 3
Joined: Thu Aug 12, 2010 9:41 am

Re: SickBeard: Automatic TV Show Download

Postby groennom » Wed Aug 18, 2010 9:19 am

jmurre wrote:I don't know what you mean by this last question. You're saying you don't have any shows in your list or you don't see anything? There is a nice Wiki on the Sick Beard site that explains the workings and how to configure: http://code.google.com/p/sickbeard/wiki/HowToUseSickBeard.

Hope this helps you.


Thanks for your reply, the & should do the trick. I think I have some difficulties with how the program works. I do have some shows in sickbeard now, and he downloaded some episodes but I haven't got a clue how he did this and why most of the shows won't download. Also, the downloads won't appear in the SABnzbd queue but it did download :? .....

I will read the link you sent, thanks for that, maybe that explains a lot!

One question, shouldn't you change the config.ini with e.g. information about SABnzbd (like username, password and API)?
User avatar
JohnNash
Rookie
Rookie
Posts: 30
Joined: Mon Apr 19, 2010 3:22 pm

Re: SickBeard: Automatic TV Show Download

Postby JohnNash » Thu Sep 02, 2010 11:59 pm

Hi jmurre i followed your guide but at http://192.168.0.10:8081 nothing shows up.
Any idea of what went wrong or how I could find out?
User avatar
jmurre
Rookie
Rookie
Posts: 38
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: SickBeard: Automatic TV Show Download

Postby jmurre » Fri Sep 03, 2010 8:05 am

JohnNash wrote:Hi jmurre i followed your guide but at http://192.168.0.10:8081 nothing shows up.
Any idea of what went wrong or how I could find out?


What you can try is to logon with telnet or SSH and then start the Sick Beard package without the quiet option:

Code: Select all

/opt/bin/python2.5 /volume1/opt/share/sickbeard/SickBeard.py


This will show if all services start up and also if Sick Beard started on the correct port:

Code: Select all

09:04:26 INFO::MainThread :: Checking database structure...
09:04:26 INFO::MainThread :: Starting Sick Beard on http://localhost:8081
09:04:26 INFO::MainThread :: Loading initial show list
09:04:26 INFO::MainThread :: 76290: Loading show info from database
09:04:26 INFO::MainThread :: 84021: Loading show info from database
09:04:26 INFO::MainThread :: 80348: Loading show info from database
09:04:26 INFO::MainThread :: 94991: Loading show info from database


Hope this will help you troubleshoot.
User avatar
JohnNash
Rookie
Rookie
Posts: 30
Joined: Mon Apr 19, 2010 3:22 pm

Re: SickBeard: Automatic TV Show Download

Postby JohnNash » Fri Sep 03, 2010 10:43 am

I did find out something:

I got

Code: Select all

Synology-DS110j> /opt/bin/python2.5 /opt/share/sickbeard/SickBeard.py
/opt/bin/python2.5: can't open file '/opt/share/sickbeard/SickBeard.py': [Errno 2] No such file or directory

so

Code: Select all

Synology-DS110j> cd /opt/share/sickbeard/Sick-Beard
Synology-DS110j> dir
drwxr-xr-x    8 root     root         4096 Sep  3 00:41 .
drwxr-xr-x    3 root     root         4096 Sep  3 00:41 ..
drwxr-xr-x    8 root     root         4096 Sep  3 00:41 .git
-rw-r--r--    1 root     root           54 Sep  3 00:41 .gitignore
-rw-r--r--    1 root     root        35147 Sep  3 00:41 COPYING.txt
-rw-r--r--    1 root     root         5208 Sep  3 00:41 SickBeard.py
drwxr-xr-x    2 root     root         4096 Sep  3 00:41 autoProcessTV
drwxr-xr-x    5 root     root         4096 Sep  3 11:39 cherrypy
drwxr-xr-x    6 root     root         4096 Sep  3 00:41 data
-rwxr-xr-x    1 root     root         1442 Sep  3 00:41 initscript
drwxr-xr-x    7 root     root         4096 Sep  3 11:39 lib
-rw-r--r--    1 root     root         2254 Sep  3 00:41 readme.md
drwxr-xr-x    5 root     root         4096 Sep  3 11:39 sickbeard


My SickBeard.py is in a different location: cd /opt/share/sickbeard/Sick-Beard/

Then I give

Code: Select all

Synology-DS110j> /opt/bin/python2.5 /opt/share/sickbeard/Sick-Beard/SickBeard.py
Traceback (most recent call last):
  File "/opt/share/sickbeard/Sick-Beard/SickBeard.py", line 36, in <module>
    import sickbeard
  File "/opt/share/sickbeard/Sick-Beard/sickbeard/__init__.py", line 35, in <module>
    from sickbeard import helpers, db, exceptions, queue, scheduler
  File "/opt/share/sickbeard/Sick-Beard/sickbeard/queue.py", line 15, in <module>
    from sickbeard import webserve
  File "/opt/share/sickbeard/Sick-Beard/sickbeard/webserve.py", line 30, in <module>
    from Cheetah.Template import Template
ImportError: No module named Cheetah.Template


It seems I may not have the Cheetah package.
But

Code: Select all

Synology-DS110j> ipkg install cheetah
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package cheetah.
Check the spelling or perhaps run 'ipkg update'


I'll look into this.
User avatar
JohnNash
Rookie
Rookie
Posts: 30
Joined: Mon Apr 19, 2010 3:22 pm

Re: SickBeard: Automatic TV Show Download

Postby JohnNash » Fri Sep 03, 2010 10:51 am

Alright, nevermind my last post.

For some reason with python2.6 it starts.

Code: Select all

Synology-DS110j> /opt/bin/python2.6 /opt/share/sickbeard/Sick-Beard/SickBeard.py
Starting up Sick Beard alpha2 from /opt/share/sickbeard/Sick-Beard/config.ini
11:46:42 INFO::MAIN :: Checking database structure...
11:46:42 INFO::MAIN :: Database upgrade required: Initial Schema
11:46:43 INFO::MAIN :: Database upgrade required: Add Tvr Id
11:46:43 INFO::MAIN :: Database upgrade required: Add Tvr Name
11:46:43 INFO::MAIN :: Database upgrade required: Add Airdate Index
11:46:43 INFO::MAIN :: Database upgrade required: Numeric Providers
11:46:43 INFO::MAIN :: Database upgrade required: New Quality Settings
11:46:43 INFO::MAIN :: Attempting to back up your sickbeard.db file before migration...
11:46:43 INFO::MAIN :: Done backup, proceeding with migration.
11:46:43 INFO::MAIN :: Database upgrade required: Drop Old History Table
11:46:43 INFO::MAIN :: Database upgrade required: Upgrade History For Generic Providers
11:46:43 INFO::MAIN :: Database upgrade required: Add Air By Date Option
11:46:43 INFO::MAIN :: Starting Sick Beard on http://localhost:8081


Now i need to try to make it start automatically.
User avatar
JohnNash
Rookie
Rookie
Posts: 30
Joined: Mon Apr 19, 2010 3:22 pm

Re: SickBeard: Automatic TV Show Download

Postby JohnNash » Sat Sep 04, 2010 12:08 am

Still no luck, if you care to take a look here's what I did.

I've established that

Code: Select all

/opt/bin/python /opt/share/sickbeard/Sick-Beard/SickBeard.py
runs sickbeard, so i tried modifying /var/packages/sab2/target/scripts/sabstart.sh trough vi.
The final part of my file is now:

Code: Select all

# start the thing
echo -n `/bin/date`>>$DIR/log/scripts.log;
echo ": Starting SABnzbd using IP address $IPaddr and port $port">>$DIR/log/scripts.log
$DIR/utils/bin/python $DIR/sab/SABnzbd.py -s ${IPaddr}:${port} -f $DIR/sab/sab.ini -d /opt/bin/python /opt/share/sickbeard/Sick-Beard/SickBeard.py --quiet &


I modified your $DIR/utils/bin/python with /opt/bin/python that when put manually starts sickbeard.
On system restart though nothing shows up at http://192.168.0.10:8081/

Sorry to bother you again, but do you have any idea why?
Is it possible that I need to run the command

Code: Select all

ln -s /var/packages/sab2/target/utils/bin/python /usr/bin/python
differently? Sorry but I'm no terminal expert
User avatar
jmurre
Rookie
Rookie
Posts: 38
Joined: Mon Mar 16, 2009 10:01 am
Location: The Netherlands

Re: SickBeard: Automatic TV Show Download

Postby jmurre » Sat Sep 04, 2010 9:30 am

JohnNash wrote:Still no luck, if you care to take a look here's what I did.

I've established that

Code: Select all

/opt/bin/python /opt/share/sickbeard/Sick-Beard/SickBeard.py
runs sickbeard, so i tried modifying /var/packages/sab2/target/scripts/sabstart.sh trough vi.
The final part of my file is now:

Code: Select all

# start the thing
echo -n `/bin/date`>>$DIR/log/scripts.log;
echo ": Starting SABnzbd using IP address $IPaddr and port $port">>$DIR/log/scripts.log
$DIR/utils/bin/python $DIR/sab/SABnzbd.py -s ${IPaddr}:${port} -f $DIR/sab/sab.ini -d /opt/bin/python /opt/share/sickbeard/Sick-Beard/SickBeard.py --quiet &


I modified your $DIR/utils/bin/python with /opt/bin/python that when put manually starts sickbeard.
On system restart though nothing shows up at http://192.168.0.10:8081/

Sorry to bother you again, but do you have any idea why?
Is it possible that I need to run the command

Code: Select all

ln -s /var/packages/sab2/target/utils/bin/python /usr/bin/python
differently? Sorry but I'm no terminal expert


These are the last 2 lines from my sabstart.sh script:

Code: Select all

/opt/bin/python2.5 $DIR/sab/SABnzbd.py -s ${IPaddr}:${port} -f $DIR/sab/sab.ini
/opt/bin/python2.5 /volume1/@appstore/sickbeard/SickBeard.py --quiet &


I am using python2.5 because of the new DSM 3.0 firmware and spilt up the lines for SABnzb and Sick Beard. Hope this helps.
User avatar
JohnNash
Rookie
Rookie
Posts: 30
Joined: Mon Apr 19, 2010 3:22 pm

Re: SickBeard: Automatic TV Show Download

Postby JohnNash » Sat Sep 04, 2010 12:17 pm

I dont really know what I did but moving things around now SickBeard starts on startup. Thank you very much jmurre.
ixian
I'm New!
I'm New!
Posts: 8
Joined: Sat Sep 11, 2010 6:41 pm

Re: SickBeard: Automatic TV Show Download

Postby ixian » Mon Sep 13, 2010 6:08 pm

Thanks for this mini-guide. I got Sickbeard working without issue on the 1010+ w/DSM 3.0 beta. I should look in to maybe packaging it up in to an installer.
cchance
I'm New!
I'm New!
Posts: 3
Joined: Tue Sep 14, 2010 1:43 am

Re: SickBeard: Automatic TV Show Download

Postby cchance » Tue Sep 14, 2010 1:46 am

guys im considering buying a DS410j was wondering will this model work with sickbeard as my main idea is to stock her up with 1.5tb drives and load up sab and have her run wild trying to keep costs low so cant afford the + model... will the j work?
User avatar
chum
Knowledgeable
Knowledgeable
Posts: 396
Joined: Tue Jun 05, 2007 9:16 am
Location: Perth, Western Australia
Contact:

Re: SickBeard: Automatic TV Show Download

Postby chum » Tue Sep 14, 2010 4:54 am

Look at getting the DS409 rather than the DS410j. It's only around $50(AUD) more expensive and has double the RAM of the DS410j and a processor that is at least 40% faster.

DS410j 128MB RAM, 800Mhz CPU
DS409 256MB RAM, 1.2Ghz CPU

The only downside is that it is an older model and some places may be out of stock and the DS409 (23db) is a little louder than the DS410j (21db).
"The NASman - Storage for your digital future"
http://www.thenasman.com
Synology Model: DS2415+ & DS1511+
Firmware: DSM 6.0-7321
HDDs: 5 x WD RED 3TB
HDDs: 2 x WD RED 1TB
HDDs: 4 x Samsung HD204UI 2TB
DMAs: 1xKODI (win),1xPivos DS, 1xArmada Mach 3, 1xRoku 2, 1xXBox 360, 1xApple AE
mrwolf
Beginner
Beginner
Posts: 21
Joined: Sat Oct 02, 2010 3:54 pm

Re: SickBeard: Automatic TV Show Download

Postby mrwolf » Sat Oct 02, 2010 4:01 pm

I'm having trouble getting SB up and running again on my DS210j. It was working well, but after I've updated to DSM 3.0, it stopped working...

I've updated SABNZB+ (0.5.4), and that's working now. However, SB won't work. I've read this thread, but can't figure out what exactly is causing this...

SB is installed on my USB-stick, and thus in the dir /volumeUSB1/usbshare/sickbeard/.

When I run '/opt/bin/python2.5 /volumeUSB1/usbshare/sickbeard/SickBeard.py' to see if I can get it running, I get the following result:

Code: Select all

DiskStation> /opt/bin/python2.5 /volumeUSB1/usbshare/sickbeard/SickBeard.py
Traceback (most recent call last):
  File "/volumeUSB1/usbshare/sickbeard/SickBeard.py", line 32, in <module>
    import sqlite3
  File "/opt/lib/python2.5/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/opt/lib/python2.5/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory


I've read something about updating python to 2.6, but how do I do this and does that solve my problem? I've tried ipkg update/upgrade, but python is not being upgraded.

Return to “Software Compatibility Lists”

Who is online

Users browsing this forum: No registered users and 1 guest