Fix for find propers and newznab providers

This commit is contained in:
echel0n 2014-05-26 01:05:47 -07:00
parent 7a56afe512
commit 7e711c0665
1 changed files with 5 additions and 3 deletions

View File

@ -187,10 +187,12 @@ class NewznabProvider(generic.NZBProvider):
"cat": self.catIDs}
# sports and anime catIDs
if self.show.is_sports:
if self.show and self.show.is_sports:
params['cat'] += ',5060'
elif self.show.is_anime:
elif self.show and self.show.is_anime:
params['cat'] += ',5070,5090'
elif not self.show:
params['cat'] += ',5060,5070,5090'
# if max_age is set, use it, don't allow it to be missing
if age or not params['maxage']:
@ -254,7 +256,7 @@ class NewznabProvider(generic.NZBProvider):
term_items_found = False
else:
if do_search_alt:
search_params["t"] = "search"
search_params['t'] = "search"
do_search_alt = (True, False)[do_search_alt]