Andrew-J-Larson / galnet-news-discord-bot

Gets news posts from Galnet News, for Elite Dangerous centered discord servers.
GNU General Public License v3.0
1 stars 1 forks source link

[Enhancement] Stop searching in api/galnet for the new posts #3

Closed Andrew-J-Larson closed 3 years ago

Andrew-J-Larson commented 3 years ago

I should change the new post detection for inside the RSS feed (instead of downloading all of api/galnet and reordering posts), then capture an array of the new post nodes from the point that it matches an older node.

With the post nodes, then fetch each ones (json data) title, body, date, guid, etc.

Andrew-J-Larson commented 3 years ago

Not going to change this because if there are ever over 10+ new posts, posted in a day, then the RSS feed would fail to show them.