mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +01:00
stream.resolution: using config the value is int
we want this to be an string
This commit is contained in:
parent
5587062181
commit
cbfd09f6b0
@ -166,7 +166,7 @@ def select_quality(config, streams):
|
|||||||
raise error.UIException(f"Can't find any streams with that audio language {config.get('audio_language')}")
|
raise error.UIException(f"Can't find any streams with that audio language {config.get('audio_language')}")
|
||||||
|
|
||||||
if config.get("resolution"):
|
if config.get("resolution"):
|
||||||
resolutions = config.get("resolution").split(",")
|
resolutions = str(config.get("resolution")).split(",")
|
||||||
streams = resolution(streams, resolutions)
|
streams = resolution(streams, resolutions)
|
||||||
if not streams:
|
if not streams:
|
||||||
raise error.UIException(f"Can't find any streams with that video resolution {config.get('resolution')}")
|
raise error.UIException(f"Can't find any streams with that video resolution {config.get('resolution')}")
|
||||||
|
Loading…
Reference in New Issue
Block a user