Try 30 days of free premium.

Newer episodes with lower IDs

GoRhY wrote 6 years ago: 1

Hi,

I'm using the tvmaze API for a telegram bot which notifies you when a new episode is airing.

I store the last episode ID notified and use it to check it to avoid duplicate notifications, as it could be confusing with airstamps if multiple episodes were airing at the same time.

This works fine almost always but today I've seen that some episodes as this one: https://www.tvmaze.com/episodes/1616161/modern-family-10x20-cant-elope has a lower ID than the one from last week: https://www.tvmaze.com/episodes/1623417/modern-family-10x19-yes-woman (1616161 < 1623417)

Shouldn't IDs be incremental for episodes?

Thank you,

tnt wrote 6 years ago: 1

The IDs reflect only the order in which episodes are added to the site. However, the episodes are not necessarily added in the broadcast order. Also they could be reordered at some point if network's schedule changed.

In your example, episode "Can't Elope" initially was announced as episode #18 (and added as such), but then actually released as #20.

GoRhY wrote 6 years ago: 1

tnt wrote:
The IDs reflect only the order in which episodes are added to the site. However, the episodes are not necessarily added in the broadcast order. Also they could be reordered at some point if network's schedule changed.

In your example, episode "Can't Elope" initially was announced as episode #18 (and added as such), but then actually released as #20.

Thanks for the reply, then I'll need to add some extra logic to the system

Try 30 days of free premium.