Invidious is an alternative front-end to YouTube
Remove admin_email. Use repos url for captcha ID and reddit header. Add note about not updating changelog
HackerNCoder606dd11b4f9f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 314a134f..8aa416ec 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1,3 +1,5 @@+# Note: This is no longer updated and links to omarroths repo, which doesn't exist anymore.+# 0.20.0 (2019-011-06)# Version 0.20.0: Custom Playlistsdiff --git a/src/invidious/comments.cr b/src/invidious/comments.crindex 8849c87f..0ac99ba5 100644--- a/src/invidious/comments.cr+++ b/src/invidious/comments.cr@@ -242,7 +242,7 @@ enddef fetch_reddit_comments(id, sort_by = "confidence")client = make_client(REDDIT_URL)- headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}+ headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by github.com/iv-org/invidious)"}# TODO: Use something like #479 for a static list of instances to use herequery = "(url:3D#{id}%20OR%20url:#{id})%20(site:invidio.us%20OR%20site:youtube.com%20OR%20site:youtu.be)"diff --git a/src/invidious/helpers/helpers.cr b/src/invidious/helpers/helpers.crindex a4101ef1..1f56ec92 100644--- a/src/invidious/helpers/helpers.cr+++ b/src/invidious/helpers/helpers.cr@@ -95,7 +95,6 @@ class Configproperty port : Int32 = 3000 # Port to listen for connections (overrided by command line argument)property host_binding : String = "0.0.0.0" # Host to bind (overrided by command line argument)property pool_size : Int32 = 100 # Pool size for HTTP requests to youtube.com and ytimg.com (each domain has a separate pool of `pool_size`)- property admin_email : String = "FIXME" # Email for bug reports@[YAML::Field(converter: Preferences::StringToCookies)]property cookies : HTTP::Cookies = HTTP::Cookies.new # Saved cookies in "name1=value1; name2=value2..." formatdiff --git a/src/invidious/users.cr b/src/invidious/users.crindex 4b16affc..153e3b6a 100644--- a/src/invidious/users.cr+++ b/src/invidious/users.cr@@ -427,7 +427,7 @@ def generate_captcha(key, db)enddef generate_text_captcha(key, db)- response = make_client(TEXTCAPTCHA_URL, &.get("/FIXME.json").body)+ response = make_client(TEXTCAPTCHA_URL, &.get("/github.com/iv.org/invidious.json").body)response = JSON.parse(response)tokens = response["a"].as_a.map do |answer|