mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Update list of domains for pulling Reddit comments
This commit is contained in:
parent
62f7f7a689
commit
38600b3347
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue