Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix NewzNab providers that use sphinx #525

Merged
merged 1 commit into from

2 participants

@thezoggy

Fix for Newznab providers when searching for a show without a tvrage id, as 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).

@thezoggy thezoggy 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).
ead2fb8
@midgetspy midgetspy merged commit 98940b5 into midgetspy:development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 10, 2012
  1. @thezoggy

    Fix for Newznab providers when searching for a show without a tvrage …

    thezoggy authored
    …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 page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 sickbeard/providers/newznab.py
View
6 sickbeard/providers/newznab.py
@@ -86,7 +86,7 @@ def _get_season_search_strings(self, show, season=None):
cur_params['rid'] = show.tvrid
# if we can't then fall back on a very basic name search
else:
- cur_params['q'] = helpers.sanitizeSceneName(cur_exception).replace('.', '_')
+ cur_params['q'] = helpers.sanitizeSceneName(cur_exception)
if season != None:
# air-by-date means &season=2010&q=2010.03, no other way to do it atm
@@ -117,7 +117,7 @@ def _get_episode_search_strings(self, ep_obj):
params['rid'] = ep_obj.show.tvrid
# if we can't then fall back on a very basic name search
else:
- params['q'] = helpers.sanitizeSceneName(ep_obj.show.name).replace('.', '_')
+ params['q'] = helpers.sanitizeSceneName(ep_obj.show.name)
if ep_obj.show.air_by_date:
date_str = str(ep_obj.airdate)
@@ -142,7 +142,7 @@ def _get_episode_search_strings(self, ep_obj):
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
Something went wrong with that request. Please try again.