From c064732518984c655fcb54313e9004cafcab02d4 Mon Sep 17 00:00:00 2001 From: Ethan Leisinger Date: Wed, 23 Oct 2024 09:54:33 -0600 Subject: [PATCH] Rollback bazarr update --- themepark.go | 26 ++++++++++++++------------ themepark_test.go | 5 ----- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/themepark.go b/themepark.go index de388da..b7028d6 100644 --- a/themepark.go +++ b/themepark.go @@ -100,18 +100,20 @@ func (config *Config) setDefaults() { } } -const bodyBasedApps string = "(?i)" + - "vuetorrent" + "|" + - "qbittorrent" + "|" + - "emby" + "|" + - "jellyfin" + "|" + - "radarr" + "|" + - "prowlarr" + "|" + - "sonarr" + "|" + - "readarr" + "|" + - "lidarr" + "|" + - "whisparr" + "|" + - "bazarr" +var bodyBasedAppsList []string = []string{ + "vuetorrent", + "qbittorrent", + "emby", + "jellyfin", + "radarr", + "prowlarr", + "sonarr", + "readarr", + "lidarr", + "whisparr", +} + +var bodyBasedApps string = "(?i)" + strings.Join(bodyBasedAppsList, "|") func (config *Config) getRegexTarget() string { match, _ := regexp.Match(bodyBasedApps, []byte(config.App)) diff --git a/themepark_test.go b/themepark_test.go index a98b732..aaf4a49 100644 --- a/themepark_test.go +++ b/themepark_test.go @@ -278,11 +278,6 @@ func TestRegexTarget(t *testing.T) { config: Config{App: "Whisparr"}, expected: "", }, - { - desc: "Bazarr should be body based", - config: Config{App: "Bazarr"}, - expected: "", - }, { desc: "Provided Target should be used", config: Config{App: "Emby", Target: ""},