Page 1 of 1

RSS feed rename items from pattern

Posted: February 14th, 2012, 1:16 pm
by nexus5169
Hi,

Here is the deal,

Using RSS from a famous news index website, for some items (TV show most of cases), the name of the item doesn't match the TV show real name.

Ex : toto post TTB112.foo.par2 --> TV show "Toto The Boss - S01E12"

So for tv sorting it's a mess.

Is there a way to add per rss feed a patern matching the TV show number and modify the final name of the nzb downloaded by sabnzbd.

Ex : Feed : Toto The Boss Show -> feed -> item : toto post TTB112.foo.par2

Matching pattern will extract 1 and 12 from the above item (TTB%S%EE) and apply the mask : Toto The Boss - %SSE%EE to rename the item.

It will be great for TV sorting feature.

Please post any idea or third party plugins (except sickbeard).

Thanks :)

Re: RSS feed rename items from pattern

Posted: February 20th, 2012, 2:18 pm
by nexus5169
reply to my self,

Using the pre-queue script, a tiny perl script and a list of regex,tv show name, it works like a charm.

As a feature, you could add one field in RSS part, to give a matching Regex.

We already have the name of the Feed : My TV Show Name, the feed http://my_rss_feed, just add a Regex field (optionnal), let say tvshow(\d)(\d\d) and recreate the name as My TV Show Name - S$1E$2.

Re: RSS feed rename items from pattern

Posted: February 20th, 2012, 5:00 pm
by shypike
I would have suggested a pre-q script too :)