Kodi Community Forum
Sick Beard - Automatic TV Show Episode download/sort/rename, nfo/tbn maker & TV Guide - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Sick Beard - Automatic TV Show Episode download/sort/rename, nfo/tbn maker & TV Guide (/showthread.php?tid=63591)



- xeonicxpression - 2010-04-19

xexe Wrote:http://code.google.com/p/sickbeard/issues/detail?id=318#c0
The post processing of SickBeard has just deleted all my TV eps.

This is nothing to do with me but a friendly warning that if this bug is real its a monster.

Hehehe, I had Sickbeard delete 360GB worth of tv shows once. I was in the process of moving them to their own drive so I had a complete backup of it, so nothing lost. It was my own fault though. It wasn't a bug, just a dumb move on my part. Gotta say, I love sickbeard though!


- ClayM - 2010-04-20

ClayM Wrote:I'm using alpha2 - Genre says "Comedy / News / Talk Show" (Daily Show, Colbert Report)

Should this work? Or should it only be "Talk Show"?


- midgetspy - 2010-04-20

ClayM Wrote:Should this work? Or should it only be "Talk Show"?

It should work like that, I'm not sure what the problem is. I haven't been working in alpha2 lately but when I switch back I'll take a look.


- ClayM - 2010-04-20

it's not a huge deal, don't let me take you away from other stuff


- GhostDog - 2010-04-20

midgetspy Wrote:GhostDog: while it should be erroring in a more user friendly way than that, it looks like that's just a problem with your SAB settings or networking. If the urllib call can't access your SAB server there's nothing more SB can do. Check your settings and use Black Hole until you get it figured out.

Thanks. It looks like it was my Sabnzdb port setting. Does Sick Beard have any issues with HTTPS support port 9090? Changing this setting back to HTTP 8081 seems to have fixed the problem.


- bobrap - 2010-04-20

Getting this error when trying to import shows:

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 660, in respond
File "cherrypy\lib\encoding.pyo", line 193, in __call__
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "sickbeard\webserve.pyo", line 665, in addShow
File "sickbeard\queue.pyo", line 132, in addShow
File "sickbeard\queue.pyo", line 207, in __init__
File "sickbeard\tv.pyo", line 102, in __init__
File "sickbeard\tv.pyo", line 626, in loadNFO
ValueError: invalid literal for int() with base 10: 'tt0460627'

Any ideas?


- midgetspy - 2010-04-20

bobrap Wrote:Getting this error when trying to import shows:

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 660, in respond
File "cherrypy\lib\encoding.pyo", line 193, in __call__
File "cherrypy\_cpdispatch.pyo", line 25, in __call__
File "sickbeard\webserve.pyo", line 665, in addShow
File "sickbeard\queue.pyo", line 132, in addShow
File "sickbeard\queue.pyo", line 207, in __init__
File "sickbeard\tv.pyo", line 102, in __init__
File "sickbeard\tv.pyo", line 626, in loadNFO
ValueError: invalid literal for int() with base 10: 'tt0460627'

Any ideas?

Well it shouldn't be erroring like that, I'll fix that. The reason for the error is that you have an existing tvshow.nfo that has an imdb ID in it instead of a tvdb ID. It should just rename the nfo to tvshow.nfo.old and make a new one for you.


- Pr.Sinister - 2010-04-21

wiz561 Wrote:I'm having a minor issue. I'm running xbmc svn rev 29344 with sickbeard alpha a8728af. I've read that there were some recent issues with the tvshow.nfo and xbmc not recognizing it. I'm not sure if my problem is related or not...

OK, so, I download something with sickbeard. Sickbeard then processes the shows so that the fanart, tvshow.nfo, and the .nfo files for the tv shows are there for xbmc.

My problem is with xbmc, when I choose to "update library", it doesn't find the new shows. In the past, I just let xbmc handle everything and store it in the internal db and not external files (nfo's).

What am I doing wrong? When I choose "update library" in xbmc, shouldn't it find the nfo files and place them in the 'library'?

Thanks for any help or hints!

I was under the impression that scrapers were broken in all recent XBMC builds... i personally was having lotsa trouble with them so i reverted back
to 27527. Even that one acts up... It will completely freeze yet the audio
continues to play if i do 2 an XBMC Update and call another one right away.

-Pr.


2 Questions - Pr.Sinister - 2010-04-21

1) How often does the cache.db get updated for NZBMatrix and does it do it
from the RSS? Sick Beard missed House 6x17 yesterday but it is on NZBMatrix.

If i force a search, it doesn't find it.

2) I am using alpha2 but i would like to switch back to the master branch. I
really love the -f feature but until the cache is perfected, i'd rather go back to
using the NZBMatrix search API... Even with the 60 second sleep in between searches.
The alpha2 has missed/skipped some episodes and a force search doesn't find them
although they are there. And the force search is really long.

Can i just delete my cache.db and cache folder and use the master branch?

EDIT : I have done just that and it found the existing missed episodes (including
House) as soon as i loaded the master version.

-Pr.


- midgetspy - 2010-04-21

The force search code is (should be) identical between the alpha2 branch and the master so if you can post a log that'd be helpful... the only thing that uses the RSS/cache is the currently airing episodes.


- EMK0 - 2010-04-21

how do i get just 720p HDTV rips not bluray rips? if i get a whole season of a show in bluray it would take up so much space and bandwidth.


- Phokus - 2010-04-21

Will sickbeard ever just be integrated right into sabnzbd? It just makes too much sense to do so.

I mean, i absolute love sickbeard, it's great, but to get it to work with sabnzbd with postprocessing is a pain in the butt...


- Pr.Sinister - 2010-04-21

Phokus Wrote:Will sickbeard ever just be integrated right into sabnzbd? It just makes too much sense to do so.

I mean, i absolute love sickbeard, it's great, but to get it to work with sabnzbd with postprocessing is a pain in the butt...

Really? I only started using SABnzbd+ because of Sick Beard and i found it
extremely simple to setup post-processing :
  • Copy all files from SickBeard/autoProcessTV directory to SABnzbd+ Scripts directory
  • Edit autoProcessTV.cfg.sample and save as autoProcessTV.cfg
  • Choose sabToSickBeard.py as the default post-process script for TV category
  • Fill in the fields under Sick Beard's Config | Episode Downloads | SABnzbd

That's it. Nothing to it IMHO...


- Pr.Sinister - 2010-04-21

midgetspy Wrote:The force search code is (should be) identical between the alpha2 branch and the master so if you can post a log that'd be helpful... the only thing that uses the RSS/cache is the currently airing episodes.

Ya that's it. With Newzbin being useless, NZBS.org timing out at every other
request and TVNZB being dead, my only viable provider is NZBMatrix. However,
sometimes, there can be a surge of uploads and by the time Sick Beard reads
the RSS again to store in the cache.db, a new episode has been added and
bumped off the RSS.

Now unless the RSS is read at a VERY small interval, this is bound to happen so
the search API really is the most viable way of not missing anything. Even with
the 1 search per 60 second limit they imposed.

I looked at the cache and for House, it kept on searching the cache.db for
that episode but it will obviously never find it. Even after updating the cache
because it is out of range of the RSS.

When forcing the search for that specific episode, it looks like it still goes to
the cache instead of doing a real search with the API. Searching through the
logs, all i can see are a bunch of :

Code:
Apr-20 22:00:58 INFO     SEARCH :: Searching for House - 6x17 - Knight's Fall
Apr-20 22:00:58 INFO     SEARCH :: Searching NZBMatrix for House - 6x17 - Knight's Fall
Apr-20 22:00:58 DEBUG    SEARCH :: cache.db: SELECT time FROM lastUpdate WHERE provider = ? with args ['nzbmatrix']
Apr-20 22:00:58 DEBUG    SEARCH :: NZBMatrix cache update URL: http://rss.nzbmatrix.com/rss.php?username=PrSinister&apikey=xxxxxxxxxxxxxxx&subcat=6%2C5%2C41&page=download&english=1
Apr-20 22:00:59 DEBUG    SEARCH :: cache.db: UPDATE lastUpdate SET time = ? WHERE provider = ? with args [1271815259, 'nzbmatrix']
Apr-20 22:00:59 INFO     SEARCH :: Clearing cache and updating with new information



Actual Forced Search - Pr.Sinister - 2010-04-21

So in Alpha2, when forcing a search, it looks in the cache.db for NZBMatrix
instead of using the API. The other providers are searched correctly.

Code:
Apr-20 23:10:37 INFO     CP Server Thread-9 :: Searching for download for House - 6x17 - Knight's Fall
Apr-20 23:10:37 INFO     CP Server Thread-9 :: Searching for House - 6x17 - Knight's Fall
Apr-20 23:10:37 INFO     CP Server Thread-9 :: Searching NZBMatrix for House - 6x17 - Knight's Fall
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: cache.db: SELECT time FROM lastUpdate WHERE provider = ? with args ['nzbmatrix']
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: Last update was too soon, using old cache
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: cache.db: SELECT * FROM nzbmatrix WHERE tvdbid = 73255 AND season = 6 AND episodes LIKE '%|17|%' AND quality = 1
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: Cache results: []
Apr-20 23:10:37 INFO     CP Server Thread-9 :: Searching NZBs.org for House - 6x17 - Knight's Fall
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: cache.db: SELECT time FROM lastUpdate WHERE provider = ? with args ['nzbs']
Apr-20 23:10:37 DEBUG    CP Server Thread-9 :: NZBs cache update URL: http://www.nzbs.org/rss.php?dl=1&i=26028&h=09deb5da9a5d30cfbdca96511a310be7&age=548&num=100&type=1
Apr-20 23:11:01 ERROR    CP Server Thread-9 :: Error loading NZBs.org URL: (<class 'urllib2.URLError'>, URLError(error(10054, 'An existing connection was forcibly closed by the remote host'),), <traceback object at 0x032A1D28>) - <urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host>
Apr-20 23:11:01 INFO     CP Server Thread-9 :: Clearing cache and updating with new information
Apr-20 23:11:01 DEBUG    CP Server Thread-9 :: cache.db: DELETE FROM nzbs WHERE 1
Apr-20 23:11:01 ERROR    CP Server Thread-9 :: Error trying to load TVBinz RSS feed: feed() argument 1 must be string or read-only buffer, not None
Apr-20 23:11:01 DEBUG    CP Server Thread-9 :: cache.db: SELECT * FROM nzbs WHERE tvdbid = 73255 AND season = 6 AND episodes LIKE '%|17|%' AND quality = 1
Apr-20 23:11:01 DEBUG    CP Server Thread-9 :: Cache results: []
Apr-20 23:11:01 DEBUG    CP Server Thread-9 :: Search string: http://www.nzbs.org/rss.php?dl=1&catid=14&i=xxxxx&h=xxxxxxxxxxxxxxxxxxxx&age=548&q=%5EHouse.S06E17&action=search
Apr-20 23:11:22 ERROR    CP Server Thread-9 :: Error loading NZBs.org URL: (<class 'urllib2.URLError'>, URLError(error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'),), <traceback object at 0x032A1558>) - <urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond>
Apr-20 23:11:22 INFO     CP Server Thread-9 :: Searching TVNZB for House - 6x17 - Knight's Fall
Apr-20 23:11:22 DEBUG    CP Server Thread-9 :: cache.db: SELECT time FROM lastUpdate WHERE provider = ? with args ['tvnzb']
Apr-20 23:11:22 DEBUG    CP Server Thread-9 :: Last update was too soon, using old cache
Apr-20 23:11:22 DEBUG    CP Server Thread-9 :: cache.db: SELECT * FROM tvnzb WHERE tvdbid = 73255 AND season = 6 AND episodes LIKE '%|17|%' AND quality = 1
Apr-20 23:11:22 DEBUG    CP Server Thread-9 :: Cache results: []
Apr-20 23:11:22 INFO     CP Server Thread-9 :: Searching newzbin for House - 6x17 - Knight's Fall
Apr-20 23:11:22 DEBUG    CP Server Thread-9 :: Search string: http://v3.newzbin.com/search/?sort=ps_edit_date&u_nfo_posts_only=0&hauth=1&areadone=-1&u_v3_retention=47347200&feed=csv&category=8&searchaction=Search&area=-1&fpn=p&q=%28Attr%3AVideoF%7Ex264+OR+Attr%3AVideoF%7EH.264%29+Attr%3AVideoF%7E720p+Attr%3ALang%3DEng+%28%5E%22House+-+6x17%22+OR+%5E%22House+%282004%29+-+6x17%22%29+AND+NOT+%22%28Passworded%29%22+AND+NOT+%22%28Password%29%22&u_url_posts_only=0&u_comment_posts_only=0&order=desc
Apr-20 23:11:23 DEBUG    CP Server Thread-9 :: rawResults: []
Apr-20 23:11:23 INFO     CP Server Thread-9 :: No downloads were found
Apr-20 23:11:23 INFO     CP Server Thread-9 :: 73255: Displaying all episodes from the database
Apr-20 23:11:23 DEBUG    CP Server Thread-9 :: sickbeard.db: SELECT * FROM tv_episodes WHERE showid = 73255 ORDER BY season*1000+episode DESC
Apr-20 23:11:23 DEBUG    CP Server Thread-9 :: sickbeard.db: SELECT COUNT(*) FROM tv_episodes WHERE season != 0 AND episode != 0 AND status=4
Apr-20 23:11:23 DEBUG    CP Server Thread-9 :: sickbeard.db: SELECT COUNT(*) FROM tv_episodes WHERE season != 0 AND episode != 0 AND airdate <= 733882