1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

get_one_media: remove some stdout code

This commit is contained in:
Johan Andersson 2018-01-14 00:04:07 +01:00
parent 2283d3e593
commit e5fff7a15f

View File

@ -311,7 +311,7 @@ def get_one_media(stream, options):
elif options.merge_subtitle: elif options.merge_subtitle:
options.merge_subtitle = False options.merge_subtitle = False
if options.subtitle and options.output != "-" and not options.get_url: if options.subtitle and not options.get_url:
options_subs_dl(subfixes) options_subs_dl(subfixes)
if options.force_subtitle: if options.force_subtitle:
return return
@ -342,11 +342,7 @@ def get_one_media(stream, options):
sys.exit(2) sys.exit(2)
if options.thumbnail and hasattr(stream, "get_thumbnail"): if options.thumbnail and hasattr(stream, "get_thumbnail"):
if options.output != "-":
log.info("Getting thumbnail")
stream.get_thumbnail(options) stream.get_thumbnail(options)
else:
log.warning("Can not get thumbnail when fetching to stdout")
post = postprocess(stream, options, subfixes) post = postprocess(stream, options, subfixes)
if stream.name() == "dash" or (stream.name() == "hls" and stream.options.segments) and post.detect: if stream.name() == "dash" or (stream.name() == "hls" and stream.options.segments) and post.detect: