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:
parent
7671a26810
commit
e53a2741da
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user