Skip to content

Commit

Permalink
Fixes for tvmaze. Taken from jamesmeneghello#304. Credit to ukharely
Browse files Browse the repository at this point in the history
  • Loading branch information
brookesy2 committed Sep 29, 2017
1 parent c89fc59 commit 7bb8e0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pynab/interfaces/tv/tvmaze.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ def search(data):
showname = clean_name

maze_show = None

tvm = pytvmaze.TVMaze()

try:
maze_show = pytvmaze.get_show(show_name=showname, show_year=year, show_country=country)
maze_show = tvm.get_show(show_name=showname, show_year=year, show_country=country)
except Exception as e:
log.debug('tvmaze: exception: {}'.format(e))

Expand Down

0 comments on commit 7bb8e0e

Please sign in to comment.