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