misc: rss and media changes (#27)

* refactor: tweak rss processing

* media: override trakt network with tvdb network if trakts is empty

* media: dont merge tvdb language with trakt language

* media: resolve issue with imdb ids
This commit is contained in:
l3uddz
2021-03-05 22:35:16 +00:00
committed by GitHub
parent c3ab8eda6e
commit 5091d78acf
8 changed files with 64 additions and 9 deletions

View File

@@ -11,6 +11,17 @@ func StringSliceContains(slice []string, val string) bool {
return false
}
func StringSliceContainsAny(slice []string, vals []string) bool {
for _, s := range slice {
for _, v := range vals {
if strings.EqualFold(s, v) {
return true
}
}
}
return false
}
func StringSliceMergeUnique(existingSlice []string, mergeSlice []string) []string {
// add existing
data := make([]string, 0)