hotfix: make the chunk size an integer in videoplayback proxy
This commit is contained in:
2
views.py
2
views.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user