Invidious is an alternative front-end to YouTube
Videos: use intermediary variable when using CONFIG.po_token
Samantaz Foxe319c35f097e
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex 0d26b395..6d0cf9ba 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -115,7 +115,10 @@ struct Videon = 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+ endparams["host"] = url.host.not_nil!if region = self.info["region"]?.try &.as_s