mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-08 11:03:38 +00:00
Merge pull request #312 from JackDandy/feature/ChangeImproveBacklogSearch
Change improve backlog search.
This commit is contained in:
commit
eaa2560a99
3 changed files with 15 additions and 10 deletions
|
@ -91,6 +91,7 @@
|
||||||
* Fix case where start year or runtime is not available to display show
|
* Fix case where start year or runtime is not available to display show
|
||||||
* Add "File logging level" to General Config/Advanced Settings
|
* Add "File logging level" to General Config/Advanced Settings
|
||||||
* Fix saving of Sort By/Next Episode in Layout Poster on Show List page
|
* Fix saving of Sort By/Next Episode in Layout Poster on Show List page
|
||||||
|
* Change improve backlog search
|
||||||
|
|
||||||
[develop changelog]
|
[develop changelog]
|
||||||
* Fix traceback error when using the menu item Manage/Update Kodi
|
* Fix traceback error when using the menu item Manage/Update Kodi
|
||||||
|
|
|
@ -218,8 +218,9 @@ class BTNProvider(generic.TorrentProvider):
|
||||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||||
for name in name_exceptions:
|
for name in name_exceptions:
|
||||||
# Search by name if we don't have tvdb or tvrage id
|
# Search by name if we don't have tvdb or tvrage id
|
||||||
current_params['series'] = sanitizeSceneName(name)
|
cur_return = current_params.copy()
|
||||||
search_params.append(current_params)
|
cur_return['series'] = sanitizeSceneName(name)
|
||||||
|
search_params.append(cur_return)
|
||||||
|
|
||||||
return search_params
|
return search_params
|
||||||
|
|
||||||
|
@ -254,8 +255,9 @@ class BTNProvider(generic.TorrentProvider):
|
||||||
name_exceptions = list(
|
name_exceptions = list(
|
||||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||||
for cur_exception in name_exceptions:
|
for cur_exception in name_exceptions:
|
||||||
search_params['series'] = sanitizeSceneName(cur_exception)
|
cur_return = search_params.copy()
|
||||||
to_return.append(search_params)
|
cur_return['series'] = sanitizeSceneName(cur_exception)
|
||||||
|
to_return.append(cur_return)
|
||||||
|
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
|
|
@ -171,9 +171,10 @@ class NewznabProvider(generic.NZBProvider):
|
||||||
name_exceptions = list(
|
name_exceptions = list(
|
||||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||||
for cur_exception in name_exceptions:
|
for cur_exception in name_exceptions:
|
||||||
if 'q' in cur_params:
|
cur_return = cur_params.copy()
|
||||||
cur_params['q'] = helpers.sanitizeSceneName(cur_exception) + '.' + cur_params['q']
|
if 'q' in cur_return:
|
||||||
to_return.append(cur_params)
|
cur_return['q'] = helpers.sanitizeSceneName(cur_exception) + '.' + cur_return['q']
|
||||||
|
to_return.append(cur_return)
|
||||||
|
|
||||||
return to_return
|
return to_return
|
||||||
|
|
||||||
|
@ -205,8 +206,9 @@ class NewznabProvider(generic.NZBProvider):
|
||||||
name_exceptions = list(
|
name_exceptions = list(
|
||||||
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
set(scene_exceptions.get_scene_exceptions(ep_obj.show.indexerid) + [ep_obj.show.name]))
|
||||||
for cur_exception in name_exceptions:
|
for cur_exception in name_exceptions:
|
||||||
params['q'] = helpers.sanitizeSceneName(cur_exception)
|
cur_return = params.copy()
|
||||||
to_return.append(params)
|
cur_return['q'] = helpers.sanitizeSceneName(cur_exception)
|
||||||
|
to_return.append(cur_return)
|
||||||
|
|
||||||
if ep_obj.show.anime:
|
if ep_obj.show.anime:
|
||||||
# Experimental, add a searchstring without search explicitly for the episode!
|
# Experimental, add a searchstring without search explicitly for the episode!
|
||||||
|
|
Loading…
Reference in a new issue