Add administrator option to disable proxying

This commit is contained in:
Omar Roth
2019-07-07 09:07:53 -05:00
parent 5fd3ed782f
commit 2cc25b1e6e
6 changed files with 46 additions and 9 deletions

View File

@@ -1292,6 +1292,14 @@ def process_video_params(query, preferences)
related_videos = related_videos == 1
video_loop = video_loop == 1
if CONFIG.disabled?("dash") && quality == "dash"
quality = "high"
end
if CONFIG.disabled?("local") && local
local = false
end
if query["t"]?
video_start = decode_time(query["t"])
end