mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 19:12:26 -05:00
Fix for issue #986 - No RID in search params for NewzNab providers
This commit is contained in:
parent
26e82caa84
commit
e212a09520
@ -281,10 +281,6 @@ class NewznabProvider(generic.NZBProvider):
|
|||||||
if search_params:
|
if search_params:
|
||||||
params.update(search_params)
|
params.update(search_params)
|
||||||
|
|
||||||
if 'rid' not in search_params and 'q' not in search_params:
|
|
||||||
logger.log("Error no rid or search term given. Report to forums with a full debug log")
|
|
||||||
return []
|
|
||||||
|
|
||||||
if self.needs_auth and self.key:
|
if self.needs_auth and self.key:
|
||||||
params['apikey'] = self.key
|
params['apikey'] = self.key
|
||||||
|
|
||||||
@ -434,7 +430,7 @@ class NewznabCache(tvcache.TVCache):
|
|||||||
tvrageid = 0
|
tvrageid = 0
|
||||||
for attr in attrs:
|
for attr in attrs:
|
||||||
if attr['name'] == 'tvrageid':
|
if attr['name'] == 'tvrageid':
|
||||||
tvrageid = int(attr['value'])
|
tvrageid = int(attr['value'] or 0)
|
||||||
break
|
break
|
||||||
|
|
||||||
self._checkItemAuth(title, url)
|
self._checkItemAuth(title, url)
|
||||||
|
Loading…
Reference in New Issue
Block a user