mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
Don't use deprecated builtin map()
This commit is contained in:
parent
22d06ba0fe
commit
c9b38e21f6
@ -30,7 +30,7 @@ class Vimeo(Service):
|
||||
|
||||
if options.quality and selected_quality is None:
|
||||
log.error("Can't find that quality. (Try one of: %s)",
|
||||
", ".join(map(str, avail_quality)))
|
||||
", ".join([str(elm) for elm in avail_quality]))
|
||||
sys.exit(4)
|
||||
elif options.quality is None and selected_quality is None:
|
||||
selected_quality = avail_quality[0]
|
||||
|
@ -233,7 +233,7 @@ def select_quality(options, streams):
|
||||
|
||||
if not selected:
|
||||
log.error("Can't find that quality. Try one of: %s (or try --flexible-quality)",
|
||||
", ".join(map(str, available)))
|
||||
", ".join([str(elm) for elm in available]))
|
||||
sys.exit(4)
|
||||
|
||||
return streams[selected]
|
||||
|
Loading…
Reference in New Issue
Block a user