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

Get rid of some unnecessary thumbnail related output

Also, this change also makes svtplay-dl print an error if thumbnail was
requested but we write to stdout (--output -).
This commit is contained in:
Olof Johansson 2014-10-12 21:19:22 +02:00
parent f739faca40
commit e05a7cd211

View File

@ -147,14 +147,12 @@ def get_one_media(stream, options):
log.error(e.message)
sys.exit(2)
if options.thumbnail:
if hasattr(stream, "get_thumbnail"):
log.info("thumb requested")
if options.output != "-":
log.info("getting thumbnail")
stream.get_thumbnail(options)
else:
log.debug("no thumb requested")
if options.thumbnail and hasattr(stream, "get_thumbnail"):
if options.output != "-":
log.info("Getting thumbnail")
stream.get_thumbnail(options)
else:
log.warning("Can not get thumbnail when fetching to stdout")
def setup_log(silent, verbose=False):