1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-11 03:45:01 -05:00
Commit Graph

1507 Commits

Author SHA1 Message Date
echel0n
17906539ae Fixed improper line indentation 2014-08-09 11:16:55 +00:00
echel0n
1ee64ced4d If we fail to find season/episode info for air-by-date shows via DB query we attempt via indexerAPI calls 2014-08-09 11:14:51 +00:00
echel0n
dfc18b8d54 Small code change for parsing air-by-date shows to get season/episode info 2014-08-09 10:59:39 +00:00
echel0n
9ac23ae707 Merge pull request #699 from echel0n/master
Sync master<->dev
2014-08-09 01:21:25 -07:00
echel0n
e25a2a8031 Merge pull request #698 from loginfliggle/patch-1
Update tvrage_api.py
2014-08-09 01:19:34 -07:00
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
echel0n
7f8c170f67 Fixed AttributeError: 'dict' object has no attribute 'name' error 2014-08-09 06:22:54 +00:00
echel0n
a74181dca2 Merge branch 'dev' of /home/git/repositories/echel0n/sickrage 2014-08-09 01:56:30 +00:00
echel0n
1136e5c833 Fixed IndexError: list index out of range issue 2014-08-09 01:43:02 +00:00
echel0n
c4105db242 Testing fix for locale and startup issues related to improperly being set 2014-08-09 00:55:46 +00:00
echel0n
3eed021200 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
echel0n
8bec8751fb Merge pull request #697 from cptjhmiller/dev
Trakt method, error checking, remove series
2014-08-08 17:35:16 -07:00
echel0n
89944ed82b Merge pull request #696 from monkiibiz/dev
Added Danish Public Service channels
2014-08-08 17:34:48 -07:00
echel0n
c658fe0f26 Fixed NoneType error when mapping indexers to show 2014-08-09 00:19:29 +00:00
Jamie
18da621016 Trakt method, error checking, remove series 2014-08-09 00:07:17 +01:00
monkiibiz
60129f57cc Added Danish Public Service channels
DR1, DR2, TV2
2014-08-08 10:07:38 -05:00
echel0n
a2886bcf02 Merge pull request #695 from echel0n/dev
Fixed unbound method editShow() error
2014-08-08 00:18:42 -07:00
echel0n
3592e559d0 Fixed unbound method editShow() error 2014-08-08 00:18:03 -07:00
echel0n
12ce38dfd1 Merge pull request #694 from echel0n/dev
Fixes update issues for source code downloaded versions
2014-08-07 23:34:47 -07:00
echel0n
1bf47900df More fixes for source code updating 2014-08-07 23:30:56 -07:00
echel0n
f9ababe7cb Fix for updating issues 2014-08-07 23:21:30 -07:00
echel0n
922df4c160 Fix for NoneType errors 2014-08-07 22:58:41 -07:00
echel0n
de8adb24d0 Fix for AttributeError in SourceUpdateManager 2014-08-07 22:44:06 -07:00
echel0n
1c4cc6851f Merge pull request #693 from echel0n/dev
Merge pull requests and changes from DEV branch into MASTER
2014-08-07 22:22:13 -07:00
echel0n
318379522b Merge pull request #692 from Supremicus/dev
Provider image fixes.
2014-08-07 22:11:26 -07:00
echel0n
1710fe6362 Merge pull request #691 from nielsenj/XofXEpNaming
Changes "no_season" regex to support XofX naming
2014-08-07 22:11:05 -07:00
echel0n
2a0d747f8b Merge pull request #690 from adam111316/btsync
Halt postprocessing if temporary btsync files are detected
2014-08-07 22:10:50 -07:00
echel0n
aa09e88d5f Merge pull request #689 from adam111316/tidy
Tidying provider code
2014-08-07 22:10:40 -07:00
echel0n
df4f2d11d2 Merge pull request #688 from adam111316/hdbits_fix
HDbits fix
2014-08-07 22:10:29 -07:00
echel0n
36aa148e5d Merge pull request #687 from Squirtukuk/xbmcnotify
Fixed xbmc notifier failing when it shouldn't
2014-08-07 22:10:19 -07:00
echel0n
4dc0e95886 Merge pull request #684 from ressu/thexem_a_leak
Fix <a> element so that it doesn't leak to other elements
2014-08-07 22:09:43 -07:00
Supremicus
b5c703c893 Provider image fixes.
newznab.py - changed to use provider image from set gui interface (for
gui skin support).
rsstorrent.py - as per above, directory was wrong all together.
2014-08-08 09:17:31 +10:00
nielsenj
88a3444db2 Changes "no_season" regex to support XofX naming
Previous version would allow for:

Britannia The Great Elizabethan Journey - 1 of 3 (19th May 2012) [HDTV 720p (x264)]

But disallow (because of no spaces around "of"):

Britannia The Great Elizabethan Journey - 1of3 (19th May 2012) [HDTV 720p (x264)]

Also previous extra_info changes from:
of 3 (19th May 2012) [HDTV 720p (x264)]

To:
(19th May 2012) [HDTV 720p (x264)]
2014-08-06 21:45:38 -07:00
adam
c4d5e480b5 Halt postprocessing if temporary btsync files are detected 2014-08-06 21:55:17 +08:00
Adam
6ad5ccf966 HDbits fix 2014-08-06 19:58:10 +08:00
Simon
ff9c8ae82c Fixed notifier failing when it shouldn't 2014-08-06 12:06:26 +01:00
Adam
4b3a680bb3 Tidy provider code 2014-08-06 01:38:16 +08:00
Sami Haahtinen
cd1cef55d6 Fix <a> element so that it doesn't leak to other elements 2014-08-05 00:13:34 +03:00
echel0n
1908c74e96 Merge pull request #679 from adam111316/nyaa_consolidation
Remove unnecessary code from nyaatorrents provider and PEP8
2014-08-03 00:14:11 -07:00
echel0n
76011d4653 Merge pull request #680 from adam111316/animezb_consolidation
Animezb tidy proper code and PEP8
2014-08-03 00:14:03 -07:00
echel0n
493f9af02e Merge pull request #681 from adam111316/fanzub_tidy
Tidy fanzub proper code and PEP8
2014-08-03 00:13:55 -07:00
echel0n
d33929ad6d Merge pull request #682 from adam111316/fix_anime_propers
Fixing anime propers due to missed code when rebasing
2014-08-03 00:13:47 -07:00
echel0n
6424e9fbc9 Merge pull request #683 from breu/breudev
Handle case where we don't get back valid data from trakt
2014-08-03 00:13:36 -07:00
Joe Breu
9bcd914ef2 Handle case where we don't get back valid data from trakt 2014-08-01 12:26:36 -05:00
Adam
e7660c559a Fixing anime propers due to missed code when rebasing 2014-08-01 17:40:46 +08:00
Adam
74fa44d14e Tidy fanzub proper code and PEP8 2014-07-31 18:18:12 +08:00
Adam
f94b0085f0 Animezb tidy proper code and PEP8 2014-07-31 18:11:46 +08:00
Adam
4728e19edf Remove unnecessary code from nyaatorrents provider and PEP8 2014-07-31 17:45:51 +08:00
echel0n
dbc30c43cb Switched the following providers to use HTTPS connections instead of standard HTTP, more secure. 2014-07-30 22:02:45 -07:00
echel0n
efe115f909 Fixed startup issue due to import module issues. 2014-07-30 21:47:17 -07:00