contentdb icon indicating copy to clipboard operation
contentdb copied to clipboard

Atom/RSS/JSON feed

Open louisroyer opened this issue 5 years ago • 8 comments

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.

louisroyer avatar Jul 19 '20 13:07 louisroyer

@Warr1024

rubenwardy avatar Jul 19 '20 14:07 rubenwardy

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.html to have a <link> to /feed.xml. That, or just update index.html.
  • Profit

rubenwardy avatar Jul 19 '20 14:07 rubenwardy

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.

Lazerbeak12345 avatar Mar 06 '23 02:03 Lazerbeak12345

This is an important feature. What's the priority of this?

GreenLunar avatar Dec 07 '23 16:12 GreenLunar

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.

Lazerbeak12345 avatar Dec 07 '23 16:12 Lazerbeak12345

~~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.

Lazerbeak12345 avatar Dec 14 '23 01:12 Lazerbeak12345

I prefer Atom and JSON. I'd like to help with this task. Please tell me what you want me to do.

GreenLunar avatar Dec 14 '23 04:12 GreenLunar