1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

get_one_media: only print error messages when we dont have any videos

This commit is contained in:
Johan Andersson 2015-11-15 18:20:16 +04:00
parent ba4b36e43e
commit db13aa6bb3

View File

@ -215,11 +215,10 @@ def get_one_media(stream, options):
if options.force_subtitle:
return
for exc in error:
log.error(str(exc))
if (len(videos) == 0):
if len(videos) == 0:
for exc in error:
log.error(str(exc))
sys.exit(2)
else:
if options.list_quality:
list_quality(videos)