mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Videos: use intermediary variable when using CONFIG.po_token
This commit is contained in:
parent
2d18ff1f80
commit
e319c35f09
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,10 @@ struct Video
|
|||
|
||||
n = DECRYPT_FUNCTION.try &.decrypt_nsig(params["n"])
|
||||
params["n"] = n if n
|
||||
params["pot"] = CONFIG.po_token if CONFIG.po_token
|
||||
|
||||
if token = CONFIG.po_token
|
||||
params["pot"] = token
|
||||
end
|
||||
|
||||
params["host"] = url.host.not_nil!
|
||||
if region = self.info["region"]?.try &.as_s
|
||||
|
|
Loading…
Reference in a new issue