Podcastindex-org / docs-api

Developer documentation for the podcastindex.org api.
https://podcastindex-org.github.io/docs-api/
MIT License
56 stars 31 forks source link

Issue with /episodes/byfeedid with since parameter #124

Open lakexyde opened 6 months ago

lakexyde commented 6 months ago

Thank you very much for this API. It has really helped a lot. I recently built a podcast app using this.

However,there seems to be a bug when using the /episodes/byfeedid endpoint and setting thr since query parameter. It always returns the latest episodes no matter the value used. I presume this should help with pagination by setting the since value.

For example:

Setting the since value to 1970(in seconds) and max to 20 should return a list of episodes. And then sorting the items by published time, using the highest value should result in a more recent items while considering the max items to return. But unfortunately, it returns the latest episodes unless the since value is more recent than the last published date.

I really do hope you resolve this bug. Fetching 1000 episodes is not that effective for my use case.

Thank you 💯