Skip to content

Commit

Permalink
Rollback bazarr update
Browse files Browse the repository at this point in the history
  • Loading branch information
packruler committed Oct 23, 2024
1 parent 9cee034 commit c064732
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
26 changes: 14 additions & 12 deletions themepark.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
5 changes: 0 additions & 5 deletions themepark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,6 @@ func TestRegexTarget(t *testing.T) {
config: Config{App: "Whisparr"},
expected: "</body>",
},
{
desc: "Bazarr should be body based",
config: Config{App: "Bazarr"},
expected: "</body>",
},
{
desc: "Provided Target should be used",
config: Config{App: "Emby", Target: "</footer>"},
Expand Down

0 comments on commit c064732

Please sign in to comment.