mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-05 17:05:03 -05:00
Fix for Newznab providers when searching for a show without a tvrage id we use the name of the show. If the show name is more than one word we are using a _
as our delimiter which works fine unless the NN provider uses sphinx.. as the underscore then is used as part of the show name.. thus we always get back no results. We should just use .
as it works for both sphinx and non sphinx servers. Tested this out on nzbs.org / nzb.su (sphinx) / sbi (non sphinx).
This commit is contained in:
parent
c2ba2d6550
commit
5fd0a2a1f3
6
sickbeard/providers/newznab.py
Normal file → Executable file
6
sickbeard/providers/newznab.py
Normal file → Executable file
@ -96,7 +96,7 @@ class NewznabProvider(generic.NZBProvider):
|
||||
if ep_obj.show.indexer == 2:
|
||||
cur_params['rid'] = ep_obj.show.indexerid
|
||||
else:
|
||||
cur_params['q'] = helpers.sanitizeSceneName(cur_exception).replace('.', '_')
|
||||
cur_params['q'] = helpers.sanitizeSceneName(cur_exception)
|
||||
|
||||
# season
|
||||
if ep_obj.show.air_by_date or ep_obj.show.sports:
|
||||
@ -125,7 +125,7 @@ class NewznabProvider(generic.NZBProvider):
|
||||
if ep_obj.show.indexer == 2:
|
||||
params['rid'] = ep_obj.show.indexerid
|
||||
else:
|
||||
params['q'] = helpers.sanitizeSceneName(self.show.name).replace('.', '_')
|
||||
params['q'] = helpers.sanitizeSceneName(self.show.name)
|
||||
|
||||
if self.show.air_by_date or self.show.sports:
|
||||
date_str = str(ep_obj.airdate)
|
||||
@ -149,7 +149,7 @@ class NewznabProvider(generic.NZBProvider):
|
||||
continue
|
||||
|
||||
cur_return = params.copy()
|
||||
cur_return['q'] = helpers.sanitizeSceneName(cur_exception).replace('.', '_')
|
||||
cur_return['q'] = helpers.sanitizeSceneName(cur_exception)
|
||||
to_return.append(cur_return)
|
||||
|
||||
return to_return
|
||||
|
Loading…
Reference in New Issue
Block a user