From 64c2da591ef0cd8970df2fdd0f09a3308addf25f Mon Sep 17 00:00:00 2001 From: ze0s <43699394+zze0s@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:01:57 +0200 Subject: [PATCH] fix(feeds): torznab newznab pubdate parsing (#801) fix(feeds): torznab newznab pubdate struct tag --- pkg/newznab/feed.go | 2 +- pkg/torznab/feed.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/newznab/feed.go b/pkg/newznab/feed.go index 64d13a8..80bf907 100644 --- a/pkg/newznab/feed.go +++ b/pkg/newznab/feed.go @@ -31,7 +31,7 @@ type Response struct { type FeedItem struct { Title string `xml:"title,omitempty"` GUID string `xml:"guid,omitempty"` - PubDate Time `xml:"pub_date,omitempty"` + PubDate Time `xml:"pubDate,omitempty"` Prowlarrindexer struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` diff --git a/pkg/torznab/feed.go b/pkg/torznab/feed.go index 151ad90..9bfe538 100644 --- a/pkg/torznab/feed.go +++ b/pkg/torznab/feed.go @@ -30,7 +30,7 @@ type Response struct { type FeedItem struct { Title string `xml:"title,omitempty"` GUID string `xml:"guid,omitempty"` - PubDate Time `xml:"pub_date,omitempty"` + PubDate Time `xml:"pubDate,omitempty"` Prowlarrindexer struct { Text string `xml:",chardata"` ID string `xml:"id,attr"`