Fix auto-redirect regex for gtranslate vs gsearch

The redirect regex for google search (~r/google.com) would also match
for google translate requests. This updates the search regex to also
require the "/search" path to be present in the original link.
This commit is contained in:
Ben Busby 2023-03-14 12:38:02 -06:00
parent 6ffe796f19
commit 7f430a5c41
No known key found for this signature in database
GPG key ID: B9B7231E01D924A1

View file

@ -18,7 +18,7 @@ defmodule Farside do
@tiktok_regex ~r/tiktok.com|proxitok/
@imdb_regex ~r/imdb.com|libremdb/
@quora_regex ~r/quora.com|quetre/
@google_regex ~r/google.com|whoogle/
@gsearch_regex ~r/google.com\/search|whoogle/
@parent_services %{
@youtube_regex => ["invidious", "piped"],
@ -33,7 +33,7 @@ defmodule Farside do
@tiktok_regex => ["proxitok"],
@imdb_regex => ["libremdb"],
@quora_regex => ["quetre"],
@google_regex => ["whoogle"]
@gsearch_regex => ["whoogle"]
}
def get_services_map do