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

@@ -37,8 +37,8 @@ func (j *rssJob) process() error {
func (j *rssJob) queueItemWithPvrs(item *media.FeedItem) {
for _, pvr := range j.pvrs {
switch {
case item.TvdbId != "" && pvr.Type() == "sonarr":
// tvdbId is present, queue with sonarr
case (item.TvdbId != "" || item.TmdbId != "") && pvr.Type() == "sonarr":
// tvdbId/tmdbId is present, queue with sonarr
pvr.QueueFeedItem(item)
case (item.ImdbId != "" || item.TmdbId != "") && pvr.Type() == "radarr":
// imdbId is present, queue with radarr
@@ -99,7 +99,7 @@ func (j *rssJob) getFeed() ([]media.FeedItem, error) {
switch strings.ToLower(a.Name) {
case "language":
b.Channel.Items[p].Language = a.Value
case "tvdb", "tvdbid":
case "tvdb", "tvdbid", "thetvdb":
b.Channel.Items[p].TvdbId = a.Value
case "imdb", "imdbid":
if strings.HasPrefix(a.Value, "tt") {