@whskyjohnson wrote:
"Example: Here is an example the uses the rss plugin with an if statatement to only download an entry if it was released more than an hour ago. We use utcnow in this example because most RSS feeds publish their entries in a non-timezone specific manner.
rss: "http://example.com/rss"
if:
- rss_pubdate > utcnow - timedelta(hours=1): reject"This doesn't make sense. How does it accept?
I want to filter entries and only download entries released LESS THAN two hours ago but no matter what everytime I test the config everything is rejected.if:
- rss_pubdate > utcnow - timedelta(hours=2): acceptthat't what I have and everything is undecided. To me that reads if something was published at 10 AM and the current time is 11AM we'll subtract 2 hours and be at 9 AM. So the pubdate is greater right? Except nothing gets accepted.
Posts: 5
Participants: 2