From 9b9d80b32deb6bae475d3d85f376e6d69c6c0835 Mon Sep 17 00:00:00 2001 From: MaxwellGoblin Date: Sat, 25 Feb 2017 02:31:07 +0800 Subject: [PATCH] do not print size when the container is m3u8 --- src/you_get/extractor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractor.py b/src/you_get/extractor.py index 332440dd..af7cc824 100644 --- a/src/you_get/extractor.py +++ b/src/you_get/extractor.py @@ -98,7 +98,7 @@ class VideoExtractor(): if 'quality' in stream: print(" quality: %s" % stream['quality']) - if 'size' in stream: + if 'size' in stream and stream['container'].lower() != 'm3u8': print(" size: %s MiB (%s bytes)" % (round(stream['size'] / 1048576, 1), stream['size'])) if 'itag' in stream: