hotfix: make the chunk size an integer in videoplayback proxy

This commit is contained in:
2025-10-05 20:03:43 +02:00
parent 2b24fc2906
commit 260039c307

View File

@@ -130,7 +130,7 @@ def videoplaybackProxy():
# or the one in initcwndbps (if user enabled the config flag to match chunk_size with initcwndbps)
if ythdd_globals.config['proxy']['match_initcwndbps']:
try:
chunk_size = int(params.get('initcwndbps')) / 1024
chunk_size = int(params.get('initcwndbps') / 1024)
except:
pass
# return a chunked response