1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

get_media: check for all_episode from the service config

Fixes: #1009
This commit is contained in:
Johan Andersson 2018-12-11 01:03:12 +01:00
parent 9550217dda
commit 79f77cb785

View File

@ -50,7 +50,7 @@ def get_media(url, options, version="Unknown"):
logging.error("That site is not supported. Make a ticket or send a message")
sys.exit(2)
if options.get("all_episodes"):
if options.get("all_episodes") or stream.config.get("all_episodes"):
get_all_episodes(stream, url)
else:
get_one_media(stream)