RSS filter by airdates?

Get help, report and discuss bugs.
jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

RSS filter by airdates?

Post by jackiass2 » 08 May 2015, 08:18

I've been looking through the documentation, but I can't figure out if this is possible.
I have a newsnab sites RSS-feed set up with nzbget. Sometimes somebody will repost a lot of episodes of an older season of a show and they will all be pushed to nzbget and downloaded. Since the airdate is available in the feed my question is: Is it possible to filter out stuff that aired say more than a week ago?

Image
Last edited by jackiass2 on 08 May 2015, 13:32, edited 2 times in total.

hugbug
Developer & Admin
Posts: 7435
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: RSS filter by airdates?

Post by hugbug » 08 May 2015, 09:49

The screenshot is missing.

jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

Re: RSS filter by airdates?

Post by jackiass2 » 08 May 2015, 10:24

Seems fine here, but I've tried with a different host for the pic. Does it work now?

hugbug
Developer & Admin
Posts: 7435
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: RSS filter by airdates?

Post by hugbug » 08 May 2015, 10:36

Please post the content of RSS feed via pastebin.com. Remove your logins, API-keys, etc.

The easiest solution it to filter by season and/or episode which are usually available in RSS feeds:

Code: Select all

Accept: show name season:>=5 episode:>0

jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

Re: RSS filter by airdates?

Post by jackiass2 » 08 May 2015, 13:01

Sure thing.
This feed only gives back the shows I follow. I therefore have it set up in nzbget with the filter:

Code: Select all

size:<4GB -RP age:<7d
so it basically eats everything postet within the last week.

Code: Select all

age:<7d
works great but if there were an

Code: Select all

airdate:<7d
that would be even better, since somebody once in a while reposts a whole season from a while back in a show. As it is the case with Person.of.Interest in my pastebin link.
At least it will be an easier solution for the user rather than having to setup filters for every show one follows.
I was just wondering if the feature is already there, and if not, if it could be a feature request :)
Last edited by jackiass2 on 08 May 2015, 13:19, edited 3 times in total.

hugbug
Developer & Admin
Posts: 7435
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: RSS filter by airdates?

Post by hugbug » 08 May 2015, 13:06

What you post is not a feed. The feed content is xml.
Can you post the real content in xml as it comes to nzbget?

jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

Re: RSS filter by airdates?

Post by jackiass2 » 08 May 2015, 13:17

Sorry bout that. Corrected in a minute. Just need to remove api key and such.

jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

Re: RSS filter by airdates?

Post by jackiass2 » 08 May 2015, 13:26

This one should be clean: http://pastebin.com/D1vRXVyR

jackiass2
Posts: 42
Joined: 19 Nov 2013, 12:07

Re: RSS filter by airdates?

Post by jackiass2 » 12 May 2015, 10:06

I've been fiddling a little more with it. I'm guessing the normal "age" command is getting its info from this string:

Code: Select all

<newznab:attr name="usenetdate" value="Fri, 08 May 2015 13:00:51 +0000"/>
Therefore I was hoping I could use this string to filter by airdate since it describes the date in the same manner:

Code: Select all

<newznab:attr name="tvairdate" value="Thu, 07 May 2015 00:00:00 +0000"/>
I've tried with this in the RSS filter:

Code: Select all

attr-tvairdate:<7d
but I don't think it recognizes 7d in the same way as it does with the normal age command.

hugbug
Developer & Admin
Posts: 7435
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: RSS filter by airdates?

Post by hugbug » 12 May 2015, 10:28

Age is a field which is computed and specially handled in the filter.
Although you can access "attr-tvairdate" in the filter it is just a text field which can't be used like integer "age".

I'll add extra support for 'airdate' in the next version (v16).

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests