mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
get_one_media: show error message if force-subtitle and no subs
fixes: #1101
This commit is contained in:
parent
32e54c773e
commit
9255069da1
@ -178,6 +178,8 @@ def get_one_media(stream):
|
|||||||
if stream.config.get("subtitle") and not stream.config.get("get_url"):
|
if stream.config.get("subtitle") and not stream.config.get("get_url"):
|
||||||
options_subs_dl(subfixes)
|
options_subs_dl(subfixes)
|
||||||
if stream.config.get("force_subtitle"):
|
if stream.config.get("force_subtitle"):
|
||||||
|
if not subs:
|
||||||
|
logging.info("No subtitles available")
|
||||||
return
|
return
|
||||||
|
|
||||||
if stream.config.get("merge_subtitle") and not stream.config.get("subtitle"):
|
if stream.config.get("merge_subtitle") and not stream.config.get("subtitle"):
|
||||||
|
Loading…
Reference in New Issue
Block a user