Invidious is an alternative front-end to YouTube
Fix user-agent string
Omar Roth2144c388a5db
diff --git a/src/invidious.cr b/src/invidious.crindex 0bf09764..246cf08e 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -241,7 +241,7 @@ get "/watch" do |env|endreddit_client = HTTP::Client.new(REDDIT_URL, CONTEXT)- headers = HTTP::Headers{"User-Agent" => "User-Agent: web:invidio.us:v0.1.0 (by /u/omarroth)"}+ headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.1.0 (by /u/omarroth)"}beginreddit_comments, reddit_thread = get_reddit_comments(id, reddit_client, headers)rescue ex