programming-dot-dev / rss-bot

A lemmy/sublinks bot that watches rss feeds and posts new posts from them in communities
GNU Affero General Public License v3.0
33 stars 8 forks source link

Add 3 new features - joinfeeds, excludes, and date cutoff #1

Closed th3raid0r closed 1 year ago

th3raid0r commented 1 year ago

The joinfeeds array, when present, fetches all feeds in the list and retains those that are common between them. This is processed first.

The exclude array, when present, fetches all feeds in the list and excludes those entries from the feed.

The datefield is compared to the date of today minus 6 months anything older is not processed. It is now a required parameter of feeds.

Also perhaps more console logging than you want, but I found useful. Let me know if I should clean that out.

th3raid0r commented 1 year ago

Ooookay, I think she's good to go now. Tested the various loops and they all seem to complete fine. Just haven't observed an actual post quite yet. (mostly because I lack a test env that isn't my actual server)

Update: Verified posting still works and things appear safe to merge from my end.