Skip to content

Commit

Permalink
Videos: use intermediary variable when using CONFIG.po_token
Browse files Browse the repository at this point in the history
  • Loading branch information
SamantazFox committed Aug 13, 2024
1 parent 2d18ff1 commit e319c35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/invidious/videos.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e319c35

Please sign in to comment.