1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

stream.resolution: using config the value is int

we want this to be an string
This commit is contained in:
Johan Andersson 2023-03-30 22:12:43 +02:00
parent 5587062181
commit cbfd09f6b0

View File

@ -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')}")