1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +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") logging.error("That site is not supported. Make a ticket or send a message")
sys.exit(2) sys.exit(2)
if options.get("all_episodes"): if options.get("all_episodes") or stream.config.get("all_episodes"):
get_all_episodes(stream, url) get_all_episodes(stream, url)
else: else:
get_one_media(stream) get_one_media(stream)