mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Newznab providers now search by tvrage ID if available and show name incase tvrage ID doesnt return any results
This commit is contained in:
parent
6fd19de7e2
commit
ea66c2c41b
1 changed files with 19 additions and 17 deletions
|
@ -104,9 +104,10 @@ class NewznabProvider(generic.NZBProvider):
|
|||
# search
|
||||
rid = helpers.mapIndexersToShow(ep_obj.show)[2]
|
||||
if rid:
|
||||
cur_params['rid'] = rid
|
||||
to_return.append(cur_params)
|
||||
else:
|
||||
cur_return = cur_params.copy()
|
||||
cur_return['rid'] = rid
|
||||
to_return.append(cur_return)
|
||||
|
||||
# add new query strings for exceptions
|
||||
name_exceptions = list(
|
||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||
|
@ -137,9 +138,10 @@ class NewznabProvider(generic.NZBProvider):
|
|||
# search
|
||||
rid = helpers.mapIndexersToShow(ep_obj.show)[2]
|
||||
if rid:
|
||||
params['rid'] = rid
|
||||
to_return.append(params)
|
||||
else:
|
||||
cur_return = params.copy()
|
||||
cur_return['rid'] = rid
|
||||
to_return.append(cur_return)
|
||||
|
||||
# add new query strings for exceptions
|
||||
name_exceptions = list(
|
||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||
|
|
Loading…
Reference in a new issue