mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-28 06:04:17 +01:00
get_one_media: added missing checks if subtitles exists before trying to print url using -g
This commit is contained in:
parent
5871f81695
commit
f807f48b7a
@ -225,6 +225,7 @@ def get_one_media(stream, options):
|
||||
return
|
||||
|
||||
if options.subtitle and options.get_url:
|
||||
if subs:
|
||||
if options.get_all_subtitles:
|
||||
for sub in subs:
|
||||
print(sub.url)
|
||||
|
Loading…
Reference in New Issue
Block a user