fixes bug with --country in tvshow command

This commit is contained in:
cottongin 2019-01-04 15:43:44 -06:00
parent 1073c1303f
commit e027fea75f
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ class TVMaze(callbacks.Plugin):
# if we have a country, look for that first instead of the first result
if country:
show_id = None
for show in show_search:
if show['show'].get('network'):
if show['show']['network']['country']['code'].upper() == country.upper():