[REQUEST] Would like to improve the RSS feed grabbing when more than 1 link element is present
Posted: 20 Mar 2019, 09:14
Any help on below is appreciated or if this has been discussed before, would appreciate a pointer in the right direction.
I am trying to configure anime feed from Anime Tosho feed in nzbget so I can pull specific nzb files directly via RSS.
replace feedsite with animetosho
Feed URL: feed.feedsite.org/rss2?q=1080p
Here is sample of atom feed modified to make it easier to read.
As you see the entry element has 4 link (alternate, x-bittorrent, x-nzb, detail html link).
When pulling from feed, nzbget attempts the first link resulting in error. Can anyone suggest a way (scripted or program parameters) that will allow me to target link where application type parameter is x-nzb so that nzb file is grabbed correctly.
of the 4 links in the entry, only application/x-nzb type entry has nzb file
<link href="https://feedsite.org/nzb/000489f4/Real%20Girl.nzb" rel="enclosure" type="application/x-nzb"/>
I have looked at feeds which are working an it seems that nzbget will always attempt to get the first link and fail if that is not nzb. I am hoping the developer could modify the RSS feed to check if more than 1 link is given in entry element, if so check if link has application type attribute such as x-nzb and if so, pull only that link, otherwise fallback to first link in entry element for nzb grab. Or hoping someone can give me some pointer so I can script to achieve the same result.
I am trying to configure anime feed from Anime Tosho feed in nzbget so I can pull specific nzb files directly via RSS.
replace feedsite with animetosho
Feed URL: feed.feedsite.org/rss2?q=1080p
Here is sample of atom feed modified to make it easier to read.
As you see the entry element has 4 link (alternate, x-bittorrent, x-nzb, detail html link).
When pulling from feed, nzbget attempts the first link resulting in error. Can anyone suggest a way (scripted or program parameters) that will allow me to target link where application type parameter is x-nzb so that nzb file is grabbed correctly.
of the 4 links in the entry, only application/x-nzb type entry has nzb file
<link href="https://feedsite.org/nzb/000489f4/Real%20Girl.nzb" rel="enclosure" type="application/x-nzb"/>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org....">
<title>feedsite</title>
<subtitle>Latest releases feed</subtitle>
<link href="https://feed.feedsite.org/atom" rel="self" type="application/atom+xml"/>
<id>https://feedsite.org/</id>
<updated>2019-03-19T18:44:02Z</updated>
<entry>
<title>Real Girl - 23 [1080p].mkv</title>
<content type="html"><![CDATA[<strong>.....]]></content>
<link href="https://feedsite.org/view/real-girl-23-1080p-mkv.1321099" rel="alternate" type="text/html"/>
<link href="https://feedsite.org/torrents/Real%20Girl.torrent" rel="enclosure" type="application/x-bittorrent"/>
<link href="https://feedsite.org/nzb/000489f4/Real%20Girl.nzb" rel="enclosure" type="application/x-nzb"/>
<link href="https://www.feedsite.info/details.php?id=1321099" rel="via" type="text/html"/>
<updated>2019-03-19T18:44:02Z</updated>
<published>2019-03-19T18:42:00Z</published>
<id>https://mirror.feedsite.org/view/aaaaaa</id>
<author>
<name>?</name>
</author>
</entry>
</feed>
Code: Select all
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<generator>myfeeder rss feeds generator</generator>
<language>en-us</language>
<title>myfeeder - Examplefeed</title>
<link>https://rss.myfeeder</link>
<description>myfeeder - NZB Download Feed (true)</description>
<copyright>2018 myfeeder</copyright>
<atom:link href="https://rss.myfeeder/rss-search.php?search=gooday" rel="self" type="application/rss+xml"/>
<item>
<title>
Good.day.chappy
</title>
<pubDate>Mon, 1 Mar 2019 20:54:27 +0200</pubDate>
<guid>
https://api.myfeeder/nzb/?id=WYSIWYG&user=tester&api=123123123123123
</guid>
<link>
https://api.myfeeder/nzb/?id=WYSIWYG&user=tester&api=123123123123123
</link>
<description>
<![CDATA[
<b>Title:</b> Good.day.chappy<br /><b>Category:</b> Anime: HD-CLIPS<br /><b>Size:</b> 1.6 GB<br /><b>Group:</b> alt.binaries.anime<br /><b>Added to index:</b> 18/01/2019 20:54:16<br />
]]>
</description>
<category>Anime: HD-CLIPS</category>
<cattext>anime.hd.clips</cattext>
<language>English</language>
<categoryid>55</categoryid>
<enclosure url="https://api.myfeeder/nzb/?id=WYSIWYG&user=tester&api=123123123123123" length="1460832860" type="application/x-nzb"/>
</item>