diff options
| author | Ben Busby <contact@benbusby.com> | 2023-03-14 12:38:02 -0600 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2023-03-14 12:38:02 -0600 |
| commit | 7f430a5c41d200fbde8a3ec96f7dd47a94694cad (patch) | |
| tree | fb2a2579382b873fcfa9508fb6f6d20915881464 /lib | |
| parent | 6ffe796f19cabbb9a2491a3ce321127a8ef6c495 (diff) | |
| download | farside-7f430a5c41d200fbde8a3ec96f7dd47a94694cad.tar.gz | |
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.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/farside.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/farside.ex b/lib/farside.ex index 1dc2918..f31920a 100644 --- a/lib/farside.ex +++ b/lib/farside.ex @@ -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 |
