l3uddz / nabarr

Monitor newznab/torznab rss and add new media to sonarr/radarr
GNU General Public License v3.0
40 stars 5 forks source link

Update: Nabarr does not find movies and series when parsing RSS feed (Old:Cannot parse \"GMT\" as \"-0700\") #38

Open ALK4LINE opened 2 years ago

ALK4LINE commented 2 years ago

Hello,

I am new in this field. First of all, a BIG Thank you for developping this amazing tool.

First issue resolved After installing Nabarr and editing `config.yml`, I have an error in the logs regarding the date of publication in the rss feed: ``` Jun 18 20:28:49 INF Initialised pvr_name=sonarr pvr_type=sonarr pvr_version=3.0.8.1507 Jun 18 20:28:49 INF Initialised pvr_name=radarr pvr_type=radarr pvr_version=4.1.0.6175 Jun 18 20:28:49 INF Initialised feed_name="series premiere" Jun 18 20:30:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=1 feed_name="series premiere" Jun 18 20:40:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=2 feed_name="series premiere" Jun 18 20:50:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=3 feed_name="series premiere" Jun 18 21:00:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=4 feed_name="series premiere" Jun 18 21:10:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 20:24:17 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=5 feed_name="series premiere" Jun 18 21:20:00 WRN Unexpected error occurred error="get feed: decode feed: parsing time \"Sat, 18 Jun 2022 20:24:17 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"" attempts=6 feed_name="series premiere" Jun 18 21:20:00 ERR Consecutive errors occurred while refreshing rss, job has been stopped... error=["get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"","get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"","get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"","get feed: decode feed: parsing time \"Sat, 18 Jun 2022 19:47:33 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"","get feed: decode feed: parsing time \"Sat, 18 Jun 2022 20:24:17 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\"","get feed: decode feed: parsing time \"Sat, 18 Jun 2022 20:24:17 GMT\" as \"Mon, 02 Jan 2006 15:04:05 -0700\": cannot parse \"GMT\" as \"-0700\""] attempts=6 feed_name="series premiere" ``` In the RSS feed, the published dates looks like this: `Sat, 18 Jun 2022 20:16:27 GMT` `<%- (new Date((new Date()) * 1 - 1000 * Math.round(1 - 0.5 + Math.random() * 3600))).toUTCString() %>` Could you please help me modify this line so that I have `MST-0700` instead of `GMT` at the end? Another question regarding the **Tvdb id**. `` in the rss feed looks like this: ``` The Boys https://www.site.com/id-100076485-the-boys A group of vigilantes known informally as “The Boys” set out to take down corrupt superheroes with no more than blue-collar grit and a willingness to fight dirty.... tvdbid=355567
]]>
Sat, 18 Jun 2022 22:43:23 GMT
Picture

The Boys

A group of vigilantes known informally as “The Boys” set out to take down corrupt superheroes with no more than blue-collar grit and a willingness to fight dirty.

]]>
``` Does it's ok if I put the `tvdbid` inside ``, at the end, like the example above?

Finally I managed to fix the error I had. However Nabarr does not find movies and series in the RSS feed. I have this error (XX.XXX.XX.XXX is the ip address of my server and site.com is the site where I take the rss feed):

Jun 19 19:24:07 ERR Failed opening config error="open /config/config.yml: no such file or directory"
Jun 19 19:24:08 TRC Initialising config
Jun 19 19:24:08 TRC Initialising media
Jun 19 19:24:08 TRC Initialising pvrs
Jun 19 19:24:08 TRC Sending request pvr_name=sonarr pvr_type=sonarr url=http://XX.XXX.XX.XXX:8989/api/v3/system/status
Jun 19 19:24:08 TRC Sending request pvr_name=sonarr pvr_type=sonarr url=http://XX.XXX.XX.XXX:8989/api/v3/qualityprofile
Jun 19 19:24:08 TRC Sending request pvr_name=sonarr pvr_type=sonarr url=http://XX.XXX.XX.XXX:8989/api/v3/languageprofile
Jun 19 19:24:08 INF Initialised pvr_name=sonarr pvr_type=sonarr pvr_version=3.0.8.1507
Jun 19 19:24:08 TRC Sending request pvr_name=radarr pvr_type=radarr url=http://XX.XXX.XX.XXX:7878/api/v3/system/status
Jun 19 19:24:08 TRC Sending request pvr_name=radarr pvr_type=radarr url=http://XX.XXX.XX.XXX:7878/api/v3/qualityprofile
Jun 19 19:24:08 INF Initialised pvr_name=radarr pvr_type=radarr pvr_version=4.1.0.6175
Jun 19 19:24:08 TRC Initialising rss
Jun 19 19:24:08 INF Initialised feed_name=series
Jun 19 19:24:08 INF Initialised feed_name=movies
Jun 19 19:27:00 DBG Refreshing feed_name=movies
Jun 19 19:27:00 TRC Sending request feed_name=movies url=https://www.site.com/rss.xml?collection=latest-movie-updates
Jun 19 19:27:00 DBG Refreshing feed_name=series
Jun 19 19:27:00 TRC Sending request feed_name=series url=https://www.site.com/rss.xml?collection=latest-tv-updates
Jun 19 19:27:00 DBG Refreshed, no items to queue feed_name=movies
Jun 19 19:27:00 DBG Refreshed, no items to queue feed_name=series

I have inserted TvdbId and ImdbId in different ways but apparently Nabarr does not see them:

TvdbId2

ImdbId2

How should be the XML structure of the RSS feed that we want to parse and where should I put the TvdbId and ImdbId?

Thanks in advance.

Best Regards.

l3uddz commented 2 years ago

Looks like you have resolved the date issue, regarding tvdb structure, it would expect items within the RSS feed like:

<item>
    <title>Ms.Marvel.S01E03.720p.HEVC.x265-MeGusta</title>
    <guid isPermaLink="true"></guid>
    <link></link>
    <comments>h</comments>
    <pubDate>Wed, 22 Jun 2022 07:11:51 +0000</pubDate>
    <category>TV &gt; HD</category>
    <description>Description</description>
    <enclosure url="" length="532240000" type="application/x-nzb" />
    <newznab:attr name="category" value="5000" />
    <newznab:attr name="category" value="5040" />
    <newznab:attr name="size" value="532240000" />
    <newznab:attr name="guid" value="d6b688e1821326c9ffbc97b97e421392" />
    <newznab:attr name="tvdbid" value="368612" />
    <newznab:attr name="tvtitle" value="Ms Marvel" />
    <newznab:attr name="season" value="S01" />
    <newznab:attr name="episode" value="E03" />
    <newznab:attr name="coverurl" value="" />
    <newznab:attr name="grabs" value="10" />
    <newznab:attr name="usenetdate" value="Wed, 22 Jun 2022 07:11:51 +0000" />
</item>
ALK4LINE commented 2 years ago

Thank you very much for your answer! I had misunderstood the function of Nabarr. I thought it could do an RSS import, like the function in Radarr > settings > Lists > RSSImport which doesn't exist in Sonarr:

radarr

sonarr

Where one can put the link of an RSS feed (ie: https://www.site.com/rss.xml?collection=latest-movie-updates) and after having retrieved the title or the TMDB id or the iMDB id of the film in , Radar launches the monitoring of each film found in the RSS feed:

2022-06-22 15:53:19.8|Info|ImportListSyncService|Starting Import List Refresh for List RSSImport
2022-06-22 15:53:19.8|Debug|Api|[PUT] /api/v3/importlist/1: 202.Accepted (1293 ms)
2022-06-22 15:53:19.8|Debug|RSSImport|Downloading List https://www.site.com/rss.xml?collection=latest-movie-updates
2022-06-22 15:53:20.2|Debug|Api|[GET] /api/v3/health: 200.OK (1 ms)
2022-06-22 15:53:20.2|Debug|Api|[GET] /api/v3/health: 200.OK (1 ms)
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Les Bad Guys'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Les Bad Guys
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Les Animaux fantastiques : Les Secrets de Dumbledore'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Les Animaux fantastiques : Les Secrets de Dumbledore
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Memory'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Memory
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Morbius'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Morbius
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Spider-Man: No Way Home'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Spider-Man: No Way Home
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'The Northman'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse The Northman
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'A Day to Die'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse A Day to Die
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Uncharted'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Uncharted
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'The Batman'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse The Batman
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Ambulance'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Ambulance
2022-06-22 15:53:21.8|Debug|FetchAndParseImportListService|Found 10 from RSS List
2022-06-22 15:53:21.8|Debug|Parser|Parsing string 'Les Bad Guys'
2022-06-22 15:53:21.8|Debug|Parser|Unable to parse Les Bad Guys
2022-06-22 15:53:22.0|Debug|Parser|Parsing string 'Les Animaux fantastiques : Les Secrets de Dumbledore'
2022-06-22 15:53:22.0|Debug|Parser|Unable to parse Les Animaux fantastiques : Les Secrets de Dumbledore
2022-06-22 15:53:22.1|Debug|Parser|Parsing string 'Memory'
2022-06-22 15:53:22.1|Debug|Parser|Unable to parse Memory
2022-06-22 15:53:22.4|Debug|Parser|Parsing string 'Morbius'
2022-06-22 15:53:22.4|Debug|Parser|Unable to parse Morbius
2022-06-22 15:53:22.5|Debug|Parser|Parsing string 'Spider-Man: No Way Home'
2022-06-22 15:53:22.5|Debug|Parser|Unable to parse Spider-Man: No Way Home
2022-06-22 15:53:22.6|Debug|Parser|Parsing string 'The Northman'
2022-06-22 15:53:22.6|Debug|Parser|Unable to parse The Northman
2022-06-22 15:53:22.7|Debug|Parser|Parsing string 'A Day to Die'
2022-06-22 15:53:22.7|Debug|Parser|Unable to parse A Day to Die
2022-06-22 15:53:22.9|Debug|Parser|Parsing string 'Uncharted'
2022-06-22 15:53:22.9|Debug|Parser|Unable to parse Uncharted
2022-06-22 15:53:23.0|Debug|Parser|Parsing string 'The Batman'
2022-06-22 15:53:23.0|Debug|Parser|Unable to parse The Batman
2022-06-22 15:53:23.1|Debug|Parser|Parsing string 'Ambulance'
2022-06-22 15:53:23.1|Debug|Parser|Unable to parse Ambulance
2022-06-22 15:53:23.4|Debug|FetchAndParseImportListService|Found 10 reports for list RSS List
2022-06-22 15:53:23.4|Debug|ImportListSyncService|629542 [The Bad Guys] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|818397 [Memory] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|526896 [Morbius] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|634649 [Spider-Man: No Way Home] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|639933 [The Northman] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|864116 [A Day to Die] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|335787 [Uncharted] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|414906 [The Batman] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Debug|ImportListSyncService|763285 [Ambulance] Rejected, Movie Exists in DB
2022-06-22 15:53:23.4|Info|ImportListSyncService|Adding 1 movies from your auto enabled lists to library
2022-06-22 15:53:23.4|Info|AddMovieService|Adding Movie [Fantastic Beasts: The Secrets of Dumbledore (2022)][tt4123432, 338953] Path: []
2022-06-22 15:53:23.5|Info|RefreshMovieService|Updating info for Fantastic Beasts: The Secrets of Dumbledore
2022-06-22 15:53:23.6|Debug|MovieService|Updating 1 movie
2022-06-22 15:53:23.6|Debug|MovieService|1 movie updated
2022-06-22 15:53:23.6|Debug|RefreshMovieService|Finished movie refresh for Fantastic Beasts: The Secrets of Dumbledore
2022-06-22 15:53:23.6|Info|MediaCoverService|Downloading Poster for [Fantastic Beasts: The Secrets of Dumbledore (2022)][tt4123432, 338953] https://image.tmdb.org/t/p/original/jrgifaYeUtTnaH7NF5Drkgjg2MB.jpg
2022-06-22 15:53:23.6|Debug|HttpClient|Downloading [https://image.tmdb.org/t/p/original/jrgifaYeUtTnaH7NF5Drkgjg2MB.jpg] to [/config/MediaCover/125/poster.jpg]
2022-06-22 15:53:23.6|Warn|DiskScanService|Movie's root folder (/downloads/uploads/) is empty.
2022-06-22 15:53:23.6|Info|MovieScannedHandler|[Fantastic Beasts: The Secrets of Dumbledore] was recently added, performing post-add actions
2022-06-22 15:53:23.7|Debug|Api|[GET] /api/v3/command: 200.OK (12 ms)
2022-06-22 15:53:23.7|Debug|Api|[GET] /api/v3/command: 200.OK (12 ms)
2022-06-22 15:53:23.8|Debug|HttpClient|Downloading Completed. took 0s

I was looking for a way to do the same to feed Sonarr since the RSSImport option is not available in it. Now I understand that Nabarr is used to import RSS feeds specific to Torznab and Newznab into Sonarr.

Do you know a tool similar to Nabarr (for Sonarr) but for simple RSS feeds like this: https://www.site.com/rss.xml?collection=latest-tv-updates

Thank you very much again for your time. Best Regards