RSS feed rename items from pattern

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
nexus5169
Newbie
Newbie
Posts: 2
Joined: February 14th, 2012, 1:06 pm

RSS feed rename items from pattern

Post 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 :)
nexus5169
Newbie
Newbie
Posts: 2
Joined: February 14th, 2012, 1:06 pm

Re: RSS feed rename items from pattern

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: RSS feed rename items from pattern

Post by shypike »

I would have suggested a pre-q script too :)
Post Reply