It would be great if we could set custom variables in the rss feed.
Support for variables, would make the RSS support much more flexible.
I use an RSS feed which is not and will not be formatted properly for automatic duplicate detection.
However the feed does contain information which could be used to create a proper dupekey using RegEX.
If it was possible to use variables, it would be possible to use dupe detection for feeds, which contain the relevant information, but which are not properly formatted.
This particular feed includes a link to imdb.com in the description.
<description>
<![CDATA[
<p><font color="gray">HD / 1080p</font><br /><b>xx.xx GB</b><br /><font color="#E5B439">Password: xxxxxxx</font><br /><br />Link: <a href="https://www.imdb.com/title/tt0804540/">https://www.imdb.com/title/tt0804540/</a><br />IMDB Rating: 5.5<br /><br />-</p>
]]>
</description>
The IMDB ID can easily be retrieved using the following RegEX:
(com/title/tt)(.*?)(/\"\>https)
Which returns: 0804540
It would be useful, if such information could be stored in a variable.
Variable#1 = Description:(com/title/tt)(.*?)(/\"\>https)
The variable could be used to define a proper dupekey, even if it isn't supported by the feed.
Dupekey:imdb=$Variable#1
I have already modified '[FeedScript] ImdbWatchlist - RSS with IMDb integration' to work with this custom RSS Feed.
I also made a few very minor adjustments to make the script identify the id's based on the http code, seeing that rss is no longer an available.
On another note:
As you can see this feed also contains the UnRAR password. It might make sense, if there was a password variable. The password variable would be used for defining the UnRAR password using RegEX.
This particular feed also has the password embedded in the title, so the password part it isn't necessary for this use case.