mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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
|
||||
|
||||
episodes = stream.find_all_episodes(options)
|
||||
|
||||
if episodes is None:
|
||||
return
|
||||
for idx, o in enumerate(episodes):
|
||||
if o == url:
|
||||
substream = stream
|
||||
|
Loading…
Reference in New Issue
Block a user