1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-30 23:24:16 +01:00

get_media: do not try to parse episodes when we can’t find any.

this fixes #194
This commit is contained in:
Johan Andersson 2014-12-25 23:55:53 +01:00
parent 7671a26810
commit e53a2741da

View File

@ -89,7 +89,8 @@ def get_media(url, options):
return return
episodes = stream.find_all_episodes(options) episodes = stream.find_all_episodes(options)
if episodes is None:
return
for idx, o in enumerate(episodes): for idx, o in enumerate(episodes):
if o == url: if o == url:
substream = stream substream = stream