contentdb
contentdb copied to clipboard
Atom/RSS/JSON feed
Problem
I would like to suscribe to a feed containing recently added mods.
Solutions
It would be nice if you could implement some Atom feed for recently added mods.
@Warr1024
Steps:
- Create new blueprint at
app/blueprints/feed/__init__.py. Note that blueprints are automatically detected, just creating the module is enough. - Add a route called feed which returns Atom or RSS information on
/feed.xml. Build the query and the XML here, I'd prefer it if models.py wasn't modified. Optionally use templates. - Update
app/templates/base.htmlto have a<link>to/feed.xml. That, or just updateindex.html. - Profit
Would it be possible to have seperate feeds for each mod's releases? I'm thinking something like https://content.minetest.net/packages/$USER/$PACKAGE/feed.xml (linked of course).
Ofc I can just split this to be a seperate issue, if you'd prefer.
This is an important feature. What's the priority of this?
It seems like rubenwardy approved it. A PR seems to be what we're waiting for.
I've got some professional experience with Django. I could throw this on my personal developer backlog - but it's not very high priority for me to implement personally so it would take some time.
~~Do we want RSS, Atom, or both?~~
EDIT: not sure if it matters anymore, since we'd have to make them from scratch. I thought the app was a Django app (since that'd be a really easy way to make an app like this) but I was mistaken. We won't be able to use the pre-built Django RSS feed tool - so I'd have to pick up this train of thought using a different technique.
I prefer Atom and JSON. I'd like to help with this task. Please tell me what you want me to do.