SickGear has proven the most reliable stable TV fork of the great Sick-Beard to fully automate TV enjoyment with innovation.
Find a file
loginfliggle 62a7d9850c Update tvrage_api.py
Bugfix by viperidae

Reference:
---------------
Reference: https://sickrage.tv/forums/forum/help-support/bug-issue-reports/6224-there-was-an-error-with-the-xml-retrieved-from-tvrage-com

Quote:
----------
Had a look at the code and the xml documents...

It looks like the problem is caused by an empty <genre /> element in Results/shows/show/genres/
Line 459 of tvrage_api.py (it's 460 in my track in the previous post because of the debug statements I put in)

I assume it's because value is NoneType, gets replaced by a [NoneType] list and then tries to call '|'.join([NoneType]) when it was expecting a list of strings.

I changed this to the following and the problem appears to be resolved

Syslog extract:
----------------------
tvrage_error: There was an error with the XML retrieved from tvrage.com
First try emptying the cache folder at..
C:\Users\Josh\Documents\Programs\SickRage\cache\indexers\TVRage
If this does not resolve the issue, please try again later. If the error persists, report a bug on


2014-08-09 00:43:25 INFO     SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: Searching for episodes we need from Top Gear Season 21
2014-08-09 00:43:25 DB       SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: cache.db: SELECT * FROM [nmatrix] WHERE indexerid = ? AND season = ? AND episodes LIKE ? with args [74608, 21, '%|2|%']
2014-08-09 00:43:25 DB       SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: cache.db: UPDATE lastSearch SET time = ? WHERE provider = ? with args [1407559405, 'nmatrix']
2014-08-09 00:43:25 DB       SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: cache.db: INSERT INTO lastSearch (time, provider) VALUES (?, ?) with args [1407559405, 'nmatrix']
2014-08-09 00:43:25 DB       SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: sickbeard.db: SELECT * FROM indexer_mapping WHERE indexer_id = ? AND indexer = ? with args [74608, 1]
2014-08-09 00:43:25 ERROR    SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: Error while searching NMatrix, skipping: There was an error with the XML retrieved from tvrage.com
First try emptying the cache folder at..
C:\Users\Josh\Documents\Programs\SickRage\cache\indexers\TVRage
If this does not resolve the issue, please try again later. If the error persists, report a bug on

2014-08-09 00:43:25 DEBUG    SEARCHQUEUE-BACKLOG-74608 :: [NMatrix] :: Traceback (most recent call last):
  File "C:\Users\Josh\Documents\Programs\SickRage\sickbeard\search.py", line 428, in searchProviders
    searchResults = curProvider.findSearchResults(show, season, episodes, search_mode, manualSearch)
  File "C:\Users\Josh\Documents\Programs\SickRage\sickbeard\providers\generic.py", line 264, in findSearchResults
    for curString in self._get_episode_search_strings(epObj):
  File "C:\Users\Josh\Documents\Programs\SickRage\sickbeard\providers\newznab.py", line 133, in _get_episode_search_strings
    rid = helpers.mapIndexersToShow(ep_obj.show)[2]
  File "C:\Users\Josh\Documents\Programs\SickRage\sickbeard\helpers.py", line 1178, in mapIndexersToShow
    mapped_show = t[showObj.name]
  File "C:\Users\Josh\Documents\Programs\SickRage\lib\tvrage_api\tvrage_api.py", line 675, in __getitem__
    selected_series = self._getSeries(key)
  File "C:\Users\Josh\Documents\Programs\SickRage\lib\tvrage_api\tvrage_api.py", line 566, in _getSeries
    allSeries = self.search(series)
  File "C:\Users\Josh\Documents\Programs\SickRage\lib\tvrage_api\tvrage_api.py", line 557, in search
    seriesEt = self._getetsrc(self.config['url_getSeries'], self.config['params_getSeries'])
  File "C:\Users\Josh\Documents\Programs\SickRage\lib\tvrage_api\tvrage_api.py", line 500, in _getetsrc
    raise tvrage_error(errormsg)
2014-08-09 02:36:21 -04:00
autoProcessTV App name change in code. 2014-05-23 05:37:22 -07:00
gui/slick Merge pull request #697 from cptjhmiller/dev 2014-08-08 17:35:16 -07:00
lib Update tvrage_api.py 2014-08-09 02:36:21 -04:00
sickbeard Fixed issues where data needing to be posted was being sent via a GET instead of POST 2014-08-09 00:45:21 +00:00
tests Further improved memory handling of bs4 for torrent providers. 2014-07-21 16:01:46 -07:00
tornado Updated tornado source code. 2014-06-29 03:05:33 -07:00
.gitignore Added restore folder to gitignore list. 2014-06-19 07:43:12 -07:00
.travis.yml Welcome to our SickBeard-TVRage Edition ... 2014-03-09 22:39:12 -07:00
contributing.md Changed IRC channel details 2014-05-21 13:35:12 -07:00
COPYING.txt App name change in code. 2014-05-23 05:37:22 -07:00
googlecode_upload.py Welcome to our SickBeard-TVRage Edition ... 2014-03-09 22:39:12 -07:00
init.debian Added debian init script 2014-05-11 18:30:42 +03:00
init.fedora App name change in code. 2014-05-23 05:37:22 -07:00
init.freebsd Backporting from midgetspy. This is 3d130af618 2014-05-29 03:07:32 +02:00
init.gentoo added gentoo linux init script 2014-04-30 14:40:52 -04:00
init.solaris11 Welcome to our SickBeard-TVRage Edition ... 2014-03-09 22:39:12 -07:00
init.systemd Welcome to our SickBeard-TVRage Edition ... 2014-03-09 22:39:12 -07:00
init.ubuntu App name change in code. 2014-05-23 05:37:22 -07:00
readme.md Updated MOTD to comply with AUP policies. 2014-06-03 20:25:37 -07:00
setup.py Changed how SickRage determins its branch version which will resolve issues with app switching back to master branch by mistke on startup. 2014-07-28 21:43:28 -07:00
SickBeard.py Testing fix for locale and startup issues related to improperly being set 2014-08-09 00:55:46 +00:00
updater.py App name change in code. 2014-05-23 05:37:22 -07:00

SickRage

SickRage is a Video File Manager for TV Shows, It watches for new episodes of your favorite shows and when they are posted it does its magic.

SickRage is currently in beta release stage. There may be severe bugs in it and at any given time it may not work at all.

There are currently a lot of changes that we're working on, which affect the very core of how SickRage works. We're doing this to lay the groundwork for making SickRage seriously more awesome, scalable and resource-friendly than it already is.

While we're doing this, please expect SickRage do strange things, or maybe even not work at all. In any case, we need your help. If you see SickRage behaving weird, check if someone has reported it, and if not, open a new issue. There is little to no use to report "software should be stable". We will focus on that later, not now.

!!! Please before using this with your existing database (sickbeard.db) please make a backup copy of it and delete any other database files such as cache.db and failed.db if present, we HIGHLY recommend starting out with no database files at all to make this a fresh start but the choice is at your own risk !!!

FEATURES:

  • XBMC library updates, poster/fanart downloads, and NFO/TBN generation
  • configurable episode renaming
  • available for any platform, uses simple HTTP interface
  • can notify XBMC, Growl, or Twitter when new episodes are available
  • specials and double episode support
  • Automatic XEM Scene Numbering/Naming for seasons/episodes
  • Episode Status Manager now allows for mass failing seasons/episodes to force retrying.
  • DVD Order numbering for returning the results in DVD order instead of Air-By-Date order.
  • Improved Failed handling code for shows.
  • DupeKey/DupeScore for NZBGet 12+
  • Searches both TheTVDB.com, TVRage.com and AniDB.net for shows, seasons, episodes
  • Importing of existing video files now allows you to choose which indexer you wish to have SickBeard search its show info from.
  • Your tvshow.nfo files are now tagged with a indexer key so that SickBeard can easily tell if the shows info comes from TheTVDB or TVRage.
  • Sports shows are now able to be searched for..

Dependencies

To run SickRage from source you will need Python 2.6+ and Cheetah 2.1.0+.

Forums

Any questions or setup info your looking for can be found at out forums https://www.sickrage.tv
If you find a bug please report at our forums https://sickrage.tv/forums/forum/help-support/bug-issue-reports
Be sure to provide a sickrage log in debug mode where is the error evidence or it'll never get fixed.