diff options
| author | Ben Busby <contact@benbusby.com> | 2025-02-25 15:38:33 -0700 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2025-02-25 15:38:33 -0700 |
| commit | f3ab726ceced4ca9ba197f7e85ef609567fd4559 (patch) | |
| tree | f21d3cb47896a1ccf87546ecb73d94a2a818e24e /services | |
| parent | 4b19ad5228a3a8c47bc9fa1a246b9cdffbc9c49f (diff) | |
| download | farside-f3ab726ceced4ca9ba197f7e85ef609567fd4559.tar.gz | |
Add missing handling for 4get and LibreY, remove LibreX
Diffstat (limited to 'services')
| -rw-r--r-- | services/mappings.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/services/mappings.go b/services/mappings.go index 0099ecd..8766863 100644 --- a/services/mappings.go +++ b/services/mappings.go @@ -97,6 +97,20 @@ var regexMap = []RegexMapping{ Pattern: regexp.MustCompile(`genius\.com|dumb`), Targets: []string{"dumb"}, }, + { + // 4get + // Note: Could be used for redirecting other search engine + // requests, but would need special handling + Pattern: regexp.MustCompile("4get"), + Targets: []string{"4get"}, + }, + { + // LibreY + // Note: Could be used for redirecting other search engine + // requests, but would need special handling + Pattern: regexp.MustCompile("librex|librey"), + Targets: []string{"librey"}, + }, } func MatchRequest(service string) (string, error) { |
