From 38600b33477506aa99c3b3dab16b7d16f3842d84 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 15 Jun 2019 18:58:21 -0500 Subject: [PATCH] Update list of domains for pulling Reddit comments --- src/invidious/comments.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr index 79b3afaa..7f1b010d 100644 --- a/src/invidious/comments.cr +++ b/src/invidious/comments.cr @@ -247,7 +247,8 @@ def 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)"} - query = "(url:3D#{id}%20OR%20url:#{id})%20(site:youtube.com%20OR%20site:youtu.be)" + # TODO: Use something like #479 for a static list of instances to use here + query = "(url:3D#{id}%20OR%20url:#{id})%20(site:invidio.us%20OR%20site:youtube.com%20OR%20site:youtu.be)" search_results = client.get("/search.json?q=#{query}", headers) if search_results.status_code == 200