1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

get_one_media: show error message if force-subtitle and no subs

fixes: #1101
This commit is contained in:
Johan Andersson 2019-09-15 04:01:34 +02:00
parent 32e54c773e
commit 9255069da1

View File

@ -178,6 +178,8 @@ def get_one_media(stream):
if stream.config.get("subtitle") and not stream.config.get("get_url"):
options_subs_dl(subfixes)
if stream.config.get("force_subtitle"):
if not subs:
logging.info("No subtitles available")
return
if stream.config.get("merge_subtitle") and not stream.config.get("subtitle"):