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:
parent
6ffe796f19
commit
7f430a5c41
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue