Skip to content

Commit

Permalink
Don't lookup_series if tvrage_id exists in entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram-Z committed Mar 27, 2015
1 parent a8fd733 commit 9e3e69e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions flexget/plugins/search_newznab.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ def do_search_tvsearch(self, arg_entry, config=None):
# normally this should be used with emit_series who has provided season and episodenumber
if 'series_name' not in arg_entry or 'series_season' not in arg_entry or 'series_episode' not in arg_entry:
return []
serie_info = lookup_series(arg_entry['series_name'])
if not serie_info:
return []
if not arg_entry['tvrage_id']:
serie_info = lookup_series(arg_entry['series_name'])
if not serie_info:
return []
arg_entry['tvrage_id'] = serie_info.showid

url = (config['url'] + '&rid=%s&season=%s&ep=%s' %
(serie_info.showid, arg_entry['series_season'], arg_entry['series_episode']))
(arg_entry['tvrage_id'], arg_entry['series_season'], arg_entry['series_episode']))
return self.fill_entries_for_url(url, config)

def do_search_movie(self, arg_entry, config=None):
Expand Down

0 comments on commit 9e3e69e

Please sign in to comment.