mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-29 02:51:25 +00:00
feat: add support for encrypted query parameters
Related: -6bd0f28d77-7eae31613e
This commit is contained in:
@@ -3,6 +3,11 @@ module Invidious::Routes::VideoPlayback
|
||||
def self.get_video_playback(env)
|
||||
locale = env.get("preferences").as(Preferences).locale
|
||||
query_params = env.params.query
|
||||
|
||||
if query_params["enc"]? == "yes"
|
||||
query_params = URI::Params.parse(video_playback_decrypt(query_params["data"]))
|
||||
end
|
||||
|
||||
array = UInt8[0x78, 0]
|
||||
protobuf = Bytes.new(array.size)
|
||||
array.each_with_index do |byte, index|
|
||||
|
||||
Reference in New Issue
Block a user