Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order /episodes/live by datePublished rather than id #96

Open
ericpp opened this issue Mar 8, 2023 · 1 comment
Open

Order /episodes/live by datePublished rather than id #96

ericpp opened this issue Mar 8, 2023 · 1 comment

Comments

@ericpp
Copy link

ericpp commented Mar 8, 2023

The /episodes/live endpoint seems to be ordered by the id field, which leads to strange ordering with some podcasts. In the attached example, you can see that the MMO Show live item has a really low id compared to other items and appears at the bottom of the list below items that were less recently updated.

I'm wondering if this id behavior is caused by some podcasts choosing to keep live item tags in their feeds rather than removing and adding them between shows. I assume that the code will preserve ids for live tags it has seen before and only assign new ids to new tags. That could explain why MMO has a low numbered id and why it is generally towards the bottom of the live episode list.

Switching the order to datePublished in reverse chronological order would avoid this issue and always put recently updated items at the top of the list

live.json.txt

@daveajones
Copy link
Contributor

10-4. Will investigate this and change as appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants