fix(rss): support prowlarr feeds (#31)

* fix(rss): support thetvdb attribute for prowlarr support

* refactor(rss): allow queue of rss items with tmdb in for sonarr

* fix(test): set test item title based on the pvr type

* refactor(build): windows arm64 builds
This commit is contained in:
l3uddz
2021-09-13 17:55:11 +01:00
committed by GitHub
parent ce36c433fa
commit fbcce0a55b
6 changed files with 81 additions and 54 deletions

View File

@@ -1,4 +1,4 @@
// +build !windows
//go:build !windows
package main

View File

@@ -216,13 +216,10 @@ func main() {
testItem := new(media.FeedItem)
switch strings.ToLower(idParts[0]) {
case "imdb":
testItem.Title = "Test.Mode.2021.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR"
testItem.ImdbId = idParts[1]
case "tmdb":
testItem.Title = "Test.Mode.2021.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR"
testItem.TmdbId = idParts[1]
case "tvdb":
testItem.Title = "Test.Mode.S01E01.1080p.DTS-HD.MA.5.1.AVC.REMUX-FraMeSToR"
testItem.TvdbId = idParts[1]
default:
log.Error().
@@ -234,6 +231,13 @@ func main() {
// queue test item
for _, p := range pvrs {
// set test item title based on pvr type
if p.Type() == "sonarr" {
testItem.Title = "Test.Mode.S01E01.1080p.DTS-HD.MA.5.1.AVC.REMUX-FraMeSToR"
} else {
testItem.Title = "Test.Mode.2021.BluRay.1080p.TrueHD.Atmos.7.1.AVC.HYBRID.REMUX-FraMeSToR"
}
// queue test item
p.QueueFeedItem(testItem)
}