do not print size when the container is m3u8

This commit is contained in:
MaxwellGoblin 2017-02-25 02:31:07 +08:00
parent 1497d713a0
commit 9b9d80b32d

View File

@ -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: