Update User-Agent and statistics schema

This commit is contained in:
Omar Roth committed 2019-03-01 19:39:10 -06:00
1 parent 4be82c5ca6
commit 057e69fe70
2 files changed
+11 -5

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ end
def fetch_reddit_comments(id)
client = make_client(REDDIT_URL)
headers = HTTP::Headers{"User-Agent" => "web:invidio.us:v0.14.1 (by /u/omarroth)"}
headers = HTTP::Headers{"User-Agent" => "web:invidious:v#{CURRENT_VERSION} (by /u/omarroth)"}
query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)"
search_results = client.get("/search.json?q=#{query}", headers)