diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-08-13 20:56:09 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-08-13 20:56:09 +0200 |
| commit | e319c35f097e08590e705378c7e5b479720deabc (patch) | |
| tree | 2711a9853a0d202925392d708536654c14bd32bd /src | |
| parent | 2d18ff1f80aa804a11108f346a7a3a20f4eb191d (diff) | |
| download | invidious-e319c35f097e08590e705378c7e5b479720deabc.tar.gz invidious-e319c35f097e08590e705378c7e5b479720deabc.tar.bz2 invidious-e319c35f097e08590e705378c7e5b479720deabc.zip | |
Videos: use intermediary variable when using CONFIG.po_token
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 0d26b395..6d0cf9ba 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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 |
