Package request - Sickbeard - Anime Fork

Got a feature request? Great! Post your ideas here!
Elusivity
Posts: 38
youtube meble na wymiar Warszawa
Joined: Thu Jul 25, 2013 8:28 pm

Package request - Sickbeard - Anime Fork

Post by Elusivity »

Hi All,

Is there any chance we can have a packaged version of the Anime fork of Sickbeard made available as an installable package?

The main details and link to the git are available here: the http://sickbeard.lad1337.de/
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

Are you wanting this to run alongside the regular SickBeard, or instead of?

Replacing the existing version is trivial, it just requires deleting the SickBeard folder that is inside
/usr/local/AppCentral/sickbeard/
and then cloning the anime branch

Code: Select all

git clone git://github.com/lad1337/Sick-Beard.git
If you want a package that can be installed along side the existing, this can be done... Just let me know and I'll see when I might be able to get to it.
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
Elusivity
Posts: 38
Joined: Thu Jul 25, 2013 8:28 pm

Re: Package request - Sickbeard - Anime Fork

Post by Elusivity »

Clinton, first up glad to see a fellow Aussie making the Asustor worth with purchase with support for the usenet based apps, cheers! Your packages (both orig porter and maint releases) provided me the support I needed to chose the Asustor over a Thecus or QNAP.

Ideally could you look into updating the package so we could run both branches in the same instance? That'd be lower overall ram overhead for the users who are running a lot of bg processes or haven't upgraded to 2-3gb. I've had both branches running in parallel on a single instance before, so I know it's doable.

I'm running both branches as seperate instances at present, one from your build in /usr/local/AppCentral/sickbeard/ and a second from an instance I cloned and run myself, but I don't want to be playing around with init.d when your package works with the web interface, so I'm using putty to run my instance on reboot... So if it's too much trouble to try and roll both into a single package then a second one for the anime branch will do, that way at least I wouldn't need to ssh in each reboot.
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

Separate instance is possible... A single version is not really doable from me at this time. In essence I would need to try and merge the 2 separate repositories and possibly provide some switches.... Too much work IMO.

I'll try and port a SickBeard-anime apk soon.

Oh. BTW... I'm a Kiwi ;) but yes, I do live in Aus.
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
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

Can you test this beta package? If it works I'll upload to App Central.

https://www.dropbox.com/s/yjomttjteq1la ... 30_any.apk

BTW. This will only work with ADM2.0 (beta)
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
Elusivity
Posts: 38
Joined: Thu Jul 25, 2013 8:28 pm

Re: Package request - Sickbeard - Anime Fork

Post by Elusivity »

Ahh you're originally from the east islands!

Two packages will do but no dice with the package in this current setup

After installing under ADM 2.0.1.B7F1 we get:

root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime # ls -l
total 20
drwxr-xr-x 2 root root 4096 Jul 30 20:34 CONTROL/
drwxr-sr-x 9 root root 4096 Jul 30 20:34 SickBeard/
-rw-r--r-- 1 root root 4 Jul 30 09:54 apkg-version
drwsr-sr-t 2 root root 4096 Jul 30 09:54 config/
drwsr-sr-t 3 root root 4096 Jul 30 09:54 repository/

But nothing loads on port 8081 and ADM AppCentral shows the Anime instance as being 0.00 MB in size.

Manually running:

root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard'python SickBeard.py does start it but that's not running as a service, and pretty much as far as I got manually cloning it from git... but once I've manually killed and tried to restart the service it bangs on about the database being locked, maybe it's pointing to the db in the other open instance...? :

root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard # python SickBeard.py
Starting up Sick Beard anime from /volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/config.ini
20:42:32 INFO::MAIN :: Checking database structure...
20:42:32 INFO::MAIN :: Database upgrade required: Initial Schema
20:42:33 INFO::MAIN :: Database upgrade required: Add Tvr Id
20:42:33 INFO::MAIN :: Database upgrade required: Add Tvr Name
20:42:34 INFO::MAIN :: Database upgrade required: Add Airdate Index
20:42:34 INFO::MAIN :: Database upgrade required: Numeric Providers
20:42:34 INFO::MAIN :: Database upgrade required: New Quality Settings
20:42:34 INFO::MAIN :: Attempting to back up your sickbeard.db file before migration...
20:42:34 INFO::MAIN :: Done backup, proceeding with migration.
20:42:35 INFO::MAIN :: Database upgrade required: Drop Old History Table
20:42:35 INFO::MAIN :: Database upgrade required: Upgrade History For Generic Providers
20:42:36 INFO::MAIN :: Database upgrade required: Add Air By Date Option
20:42:36 INFO::MAIN :: Database upgrade required: Change Sab Config From Ip To Host
20:42:36 INFO::MAIN :: Database upgrade required: Fix Sab Host
20:42:36 INFO::MAIN :: Database upgrade required: Add Lang
20:42:37 INFO::MAIN :: Database upgrade required: Populate Root Dirs
20:42:37 INFO::MAIN :: Database upgrade required: Set Nzb Torrent Settings
20:42:37 INFO::MAIN :: Provider Womble's Index is enabled, enabling NZBs in the upgrade
20:42:37 INFO::MAIN :: Database upgrade required: Fix Air By Date Setting
20:42:38 INFO::MAIN :: Database upgrade required: Add Absolute Episode Show
20:42:38 INFO::MAIN :: Database upgrade required: Add Absolute Episode Episode
20:42:38 INFO::MAIN :: Database upgrade required: Blacklist
20:42:38 INFO::MAIN :: Database upgrade required: Whitelist
20:42:38 INFO::MAIN :: Database upgrade required: Add Scene Numbers
20:42:39 INFO::MAIN :: Database upgrade required: Add Scene Numbers Absolute
20:42:40 INFO::MAIN :: Checking database structure...
20:42:40 INFO::MAIN :: Database upgrade required: Initial Schema
20:42:41 INFO::MAIN :: Database upgrade required: Add Scene Exceptions
20:42:41 INFO::MAIN :: Database upgrade required: Add Scene Name Cache
20:42:41 INFO::MAIN :: Database upgrade required: Add Scene Exceptions Seasons
20:42:41 INFO::MAIN :: No duplicate episode, check passed
20:42:41 INFO::MAIN :: Starting Sick Beard on http://0.0.0.0:8081/
20:42:42 INFO::MAIN :: Loading initial show list
20:42:42 INFO::SEARCHQUEUE-RSS-SEARCH :: Changing all old missing episodes to status WANTED
20:42:42 INFO::SEARCHQUEUE-RSS-SEARCH :: Beginning search for new episodes on RSS
20:42:42 INFO::SEARCHQUEUE-RSS-SEARCH :: Searching all providers for any needed episodes
20:42:43 INFO::SEARCHQUEUE-RSS-SEARCH :: Clearing Womble's Index cache and updating with new information
20:43:38 ERROR::SEARCHQUEUE-RSS-SEARCH :: Error while searching Womble's Index, skipping: database is locked
20:43:58 ERROR::SEARCHQUEUE-RSS-SEARCH :: Error while searching Fanzub, skipping: database is locked
20:43:58 ERROR::SEARCHQUEUE-RSS-SEARCH :: No NZB/Torrent providers found or enabled in the sickbeard config. Please check your settings.
20:43:58 INFO::SEARCHQUEUE-RSS-SEARCH :: No needed episodes found on the RSS feeds
[1]+ Stopped python SickBeard.py
root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard # python SickBeard.py
Starting up Sick Beard anime from /volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/config.ini
20:47:57 INFO::MAIN :: Checking database structure...
20:47:57 INFO::MAIN :: Checking database structure...
20:48:17 WARNING::MAIN :: DB error: database is locked
20:48:18 WARNING::MAIN :: DB error: database is locked
20:48:19 WARNING::MAIN :: DB error: database is locked
20:48:20 WARNING::MAIN :: DB error: database is locked
20:48:21 WARNING::MAIN :: DB error: database is locked
Traceback (most recent call last):
File "SickBeard.py", line 317, in <module>
main()
File "SickBeard.py", line 237, in main
sickbeard.initialize(consoleLogging=consoleLogging)
File "/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/sickbeard/__init__.py", line 781, in initialize
db.upgradeDatabase(db.DBConnection("cache.db"), cache_db.InitialSchema)
File "/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/sickbeard/db.py", line 148, in upgradeDatabase
_processUpgrade(connection, schema)
File "/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/sickbeard/db.py", line 156, in _processUpgrade
if not instance.test():
File "/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/sickbeard/databases/cache_db.py", line 24, in test
return self.hasTable("lastUpdate")
File "/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard/sickbeard/db.py", line 176, in hasTable
return len(self.connection.action("SELECT 1 FROM sqlite_master WHERE name = ?;", (tableName, )).fetchall()) > 0
AttributeError: 'NoneType' object has no attribute 'fetchall'
root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime/SickBeard # python SickBeard.py
Starting up Sick Beard anime from /volume1/.@plugins/AppCentral/sickbeard-anime/

Taking a look it does look like it's trying to hit the Db of the main instance, nothing was written to the config folder

root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime # cd config/
root@Elusivity-NAS:/volume1/.@plugins/AppCentral/sickbeard-anime/config # ls
config.ini.org
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

Ah, sorry about that.... I'll move the link location to not use the same location as SickBeard.
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
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

Ok... I believe that is all fixed and working.
Please download the package again (same link).
Uninstall the previous package and then install the new one.

I have also renamed it to display as SickBeard-anime and not SickBeard.
This should launch in port 7072
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
Elusivity
Posts: 38
Joined: Thu Jul 25, 2013 8:28 pm

Re: Package request - Sickbeard - Anime Fork

Post by Elusivity »

Clinton, awesome work mate! This package is working well and as long as the user knows how to set it up properly with anibd and sort the files into the anime category. Upload it to AppCentral, it's golden!

Edit: typo
User avatar
clinton.hall
Posts: 846
Joined: Thu May 09, 2013 7:01 pm
Location: New Zealand

Re: Package request - Sickbeard - Anime Fork

Post by clinton.hall »

So are there changes I could make to the package to do those changes? or do they need to be done after installing, or otherwise need to have individual accounts etc?
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