Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion mythtv/bindings/python/tmdb3/tmdb3/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,12 @@ def buildEpisode(args, opts):
inetref = query
else:
results = searchSeries(query)
series = results[0]
try:
series = results[0]
except IndexError:
# the title matched no series, so there is nothing to look up
sys.stdout.write('ERROR: Series not found: ' + str(args))
return 9
inetref = str(series.id)

series = Series(inetref)
Expand Down