mirror of
https://github.com/iv-org/invidious.git
synced 2025-07-18 03:18:30 +00:00
another fix
This commit is contained in:
parent
b761ed3dcd
commit
2513aef39c
@ -6,7 +6,7 @@ class Invidious::Jobs::MonitorCfgTokensJob < Invidious::Jobs::BaseJob
|
|||||||
|
|
||||||
LOGGER.info("jobs: running MonitorCfgTokensJob job")
|
LOGGER.info("jobs: running MonitorCfgTokensJob job")
|
||||||
|
|
||||||
ReloadToken.get_tokens
|
ReloadTokens.get_tokens
|
||||||
|
|
||||||
LOGGER.info("jobs: MonitorCfgTokensJob: pot: " + ReloadTokens.pot.as(String))
|
LOGGER.info("jobs: MonitorCfgTokensJob: pot: " + ReloadTokens.pot.as(String))
|
||||||
LOGGER.info("jobs: MonitorCfgTokensJob: vdata: " + ReloadTokens.vdata.as(String))
|
LOGGER.info("jobs: MonitorCfgTokensJob: vdata: " + ReloadTokens.vdata.as(String))
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
class ReloadToken
|
class ReloadTokens
|
||||||
|
|
||||||
@@instance = new
|
@@instance = new
|
||||||
|
|
||||||
|
@ -320,8 +320,8 @@ module YoutubeAPI
|
|||||||
client_context["client"]["platform"] = platform
|
client_context["client"]["platform"] = platform
|
||||||
end
|
end
|
||||||
|
|
||||||
if ReloadToken.vdata.is_a?(String)
|
if ReloadTokens.vdata.is_a?(String)
|
||||||
client_context["client"]["visitorData"] = ReloadToken.vdata.as(String)
|
client_context["client"]["visitorData"] = ReloadTokens.vdata.as(String)
|
||||||
end
|
end
|
||||||
|
|
||||||
return client_context
|
return client_context
|
||||||
@ -482,7 +482,7 @@ module YoutubeAPI
|
|||||||
"contentPlaybackContext" => playback_ctx,
|
"contentPlaybackContext" => playback_ctx,
|
||||||
},
|
},
|
||||||
"serviceIntegrityDimensions" => {
|
"serviceIntegrityDimensions" => {
|
||||||
"poToken" => ReloadToken.pot.as(String),
|
"poToken" => ReloadTokens.pot.as(String),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -616,8 +616,8 @@ module YoutubeAPI
|
|||||||
headers["User-Agent"] = user_agent
|
headers["User-Agent"] = user_agent
|
||||||
end
|
end
|
||||||
|
|
||||||
if ReloadToken.vdata.is_a?(String)
|
if ReloadTokens.vdata.is_a?(String)
|
||||||
headers["X-Goog-Visitor-Id"] = ReloadToken.vdata.as(String)
|
headers["X-Goog-Visitor-Id"] = ReloadTokens.vdata.as(String)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Logging
|
# Logging
|
||||||
|
Loading…
Reference in New Issue
Block a user