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:
parent
ba4b36e43e
commit
db13aa6bb3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user