Invidious is an alternative front-end to YouTube
Partially bypass age-gate
Omar Roth2fcdb7f6ecac
diff --git a/src/helpers.cr b/src/helpers.crindex 061d28bd..1ababddf 100644--- a/src/helpers.cr+++ b/src/helpers.cr@@ -88,7 +88,11 @@ def fetch_video(id, client)info = HTTP::Params.parse(info)if info["reason"]?- raise info["reason"]+ info = client.get("/get_video_info?video_id=#{id}&ps=default&eurl=&gl=US&hl=en").body+ info = HTTP::Params.parse(info)+ if info["reason"]?+ raise info["reason"]+ endendtitle = info["title"]