Adding Custom Torrent Providers

Sick Beard is a PVR for newsgroup users (with limited torrent support). It watches for new episodes of your favorite shows and when they are posted it downloads them, sorts and renames them, and optionally generates metadata for them. It currently supports NZBs.org, NZBMatrix, NZBs'R'Us, Newzbin, Womble's Index, NZB.su, TVTorrents and EZRSS and retrieves show information from theTVDB.com and TVRage.com.
rospicino80
Posts: 11
youtube meble na wymiar Warszawa
Joined: Fri Jan 24, 2014 12:11 am

Adding Custom Torrent Providers

Post by rospicino80 »

Hello,

Thank you for your wonderful support in making this app.
I am wondering if it is possible to add a way to add custom torrents providers. I do not use Usenet.

Is there a way?

Thank you for your time
User avatar
clinton.hall
Posts: 845
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand
Contact:

Re: Adding Custom Torrent Providers

Post by clinton.hall »

No, this is not possible with the default version of SickBeard. There are other forks/branches on Github, switch this using git.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
rospicino80
Posts: 11
Joined: Fri Jan 24, 2014 12:11 am

Re: Adding Custom Torrent Providers

Post by rospicino80 »

clinton.hall wrote:No, this is not possible with the default version of SickBeard. There are other forks/branches on Github, switch this using git.
Thanks for the reply clinton, and also for the wonderful job with the development of different apps for the asustor community.

But I really don't know what to do now.

I am aware of other versions of Sickbeard that would fit more my situation, but I dont know how to install them into the nas. Would you help me with this please?
User avatar
clinton.hall
Posts: 845
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand
Contact:

Re: Adding Custom Torrent Providers

Post by clinton.hall »

Ok, find the version of SickBeard you want on GitHub.. Look at the git address.
E.g https://github.com/mr-orange/Sick-Beard.git

Then do the following vis ssh

Code: Select all

/usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh stop
cd /usr/local/AppCentral/sickbeard
rm -rf SickBeard
git clone https://github.com/mr-orange/Sick-Beard.git SickBeard
Obviously, replace the git URL above with the URL of your preferred fork...

If you want to switch to a different branch e.g. TPB

Code: Select all

cd /usr/local/AppCentral/sickbeard/SickBeard
git checkout TPB
Now to start SickBeard (using the new branch)

Code: Select all

/usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh restart
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
rospicino80
Posts: 11
Joined: Fri Jan 24, 2014 12:11 am

Re: Adding Custom Torrent Providers

Post by rospicino80 »

clinton.hall wrote:Ok, find the version of SickBeard you want on GitHub.. Look at the git address.
E.g https://github.com/mr-orange/Sick-Beard.git

Then do the following vis ssh

Code: Select all

/usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh stop
cd /usr/local/AppCentral/sickbeard
rm -rf SickBeard
git clone https://github.com/mr-orange/Sick-Beard.git SickBeard
Obviously, replace the git URL above with the URL of your preferred fork...

If you want to switch to a different branch e.g. TPB

Code: Select all

cd /usr/local/AppCentral/sickbeard/SickBeard
git checkout TPB
Now to start SickBeard (using the new branch)

Code: Select all

/usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh restart
Thank you.
I have done everything you told me, but when I arrive at the last point, to restart sickbeard this is the log I receive:

Code: Select all

admin@NAS:/volume1/.@plugins/AppCentral/sickbeard $ /usr/local/AppCentral/sickbe
ard/CONTROL/start-stop.sh restart
Restarting SickBeard
Shutting down SickBeard at Sat Jan 25 00:28:09 CET 2014... 
SickBeard is not running? (Sat Jan 25 00:28:09 CET 2014)
SickBeard prestartup checks... (Sat Jan 25 00:28:09 CET 2014)
 Cheetah found...
Starting SickBeardTraceback (most recent call last):
  File "SickBeard.py", line 51, in <module>
    import sickbeard
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/__init__.py", line 32, in <module>
    from sickbeard import providers, metadata
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/__init__.py", line 22, in <module>
    import xbmc, xbmc_v12, mediabrowser, synology, ps3, wdtv, tivo, mede8er
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/xbmc.py", line 23, in <module>
    import generic
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/generic.py", line 27, in <module>
    from sickbeard import exceptions, helpers
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/helpers.py", line 66, in <module>
    from lib import subliminal
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/__init__.py", line 18, in <module>
    from .api import list_subtitles, download_subtitles
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/api.py", line 18, in <module>
    from .core import (SERVICES, LANGUAGE_INDEX, SERVICE_INDEX, SERVICE_CONFIDENCE,
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/core.py", line 22, in <module>
    from .videos import Episode, Movie, scan
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/videos.py", line 21, in <module>
    import enzyme.core
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/enzyme/core.py", line 25, in <module>
    from strutils import str_to_unicode, unicode_to_str
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/enzyme/strutils.py", line 27, in <module>
    ENCODING = locale.getdefaultlocale()[1]
  File "/usr/local/AppCentral/python/lib/python2.7/locale.py", line 503, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/local/AppCentral/python/lib/python2.7/locale.py", line 435, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
 Done (Sat Jan 25 00:28:10 CET 2014)
Any clue?
User avatar
clinton.hall
Posts: 845
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand
Contact:

Re: Adding Custom Torrent Providers

Post by clinton.hall »

can you try

Code: Select all

export LANG=en_US.UTF-8
/usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh restart
if this works, there is a small change that can be made to make this work on each start..
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
rospicino80
Posts: 11
Joined: Fri Jan 24, 2014 12:11 am

Re: Adding Custom Torrent Providers

Post by rospicino80 »

I tried and this is the result

Code: Select all

admin@NAS:~ $ export LANG=en_US.UTF-8
admin@NAS:~ $ /usr/local/AppCentral/sickbeard/CONTROL/start-stop.sh restart
Restarting SickBeard
Shutting down SickBeard at Sat Jan 25 09:34:00 CET 2014... 
SickBeard is not running? (Sat Jan 25 09:34:00 CET 2014)
SickBeard prestartup checks... (Sat Jan 25 09:34:00 CET 2014)
 Cheetah found...
Starting SickBeardTraceback (most recent call last):
  File "SickBeard.py", line 51, in <module>
    import sickbeard
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/__init__.py", line 32, in <module>
    from sickbeard import providers, metadata
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/__init__.py", line 22, in <module>
    import xbmc, xbmc_v12, mediabrowser, synology, ps3, wdtv, tivo, mede8er
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/xbmc.py", line 23, in <module>
    import generic
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/metadata/generic.py", line 27, in <module>
    from sickbeard import exceptions, helpers
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/sickbeard/helpers.py", line 66, in <module>
    from lib import subliminal
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/__init__.py", line 18, in <module>
    from .api import list_subtitles, download_subtitles
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/api.py", line 18, in <module>
    from .core import (SERVICES, LANGUAGE_INDEX, SERVICE_INDEX, SERVICE_CONFIDENCE,
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/core.py", line 22, in <module>
    from .videos import Episode, Movie, scan
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/subliminal/videos.py", line 21, in <module>
    import enzyme.core
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/enzyme/core.py", line 25, in <module>
    from strutils import str_to_unicode, unicode_to_str
  File "/volume1/.@plugins/AppCentral/sickbeard/SickBeard/lib/enzyme/strutils.py", line 27, in <module>
    ENCODING = locale.getdefaultlocale()[1]
  File "/usr/local/AppCentral/python/lib/python2.7/locale.py", line 503, in getdefaultlocale
    return _parse_localename(localename)
  File "/usr/local/AppCentral/python/lib/python2.7/locale.py", line 435, in _parse_localename
    raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8
 Done (Sat Jan 25 09:34:01 CET 2014)
I think nothing changed... What do you think?
User avatar
clinton.hall
Posts: 845
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand
Contact:

Re: Adding Custom Torrent Providers

Post by clinton.hall »

What fork of SickBeard did you use? Perhaps try another.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
rospicino80
Posts: 11
Joined: Fri Jan 24, 2014 12:11 am

Re: Adding Custom Torrent Providers

Post by rospicino80 »

clinton.hall wrote:What fork of SickBeard did you use? Perhaps try another.
I used the one of mr. orange, the same one of your example.

One thing: when I first did this I did it as a root... Could be a problem?
User avatar
clinton.hall
Posts: 845
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand
Contact:

Re: Adding Custom Torrent Providers

Post by clinton.hall »

I thought my script took care of ownership, but to be safe, do this as root.

Code: Select all

chown -R admin /usr/local/AppCentral/sickbeard
Then try restarting again.
AS-604T
3 x ST4000DM0000 (Seagate 4TB) in Raid5
2 GB RAM expansion
AS-302T

Apps (user)
NZBGet - CouchPotato - SickBeard - Git - Python

Apps (maintainer):
NZBGet - BitTorrent Sync - Mylar - LazyLibrarian - Gamez
-Maintenance of Apps acquired from JohhnyFive since ADM2.0:
SABnzbd - CouchPotato - SickBeard - HeadPhones - Subsonic

About Me: http://fockwulf.wix.com/index
Post Reply

Return to “SickBeard”