I've noticed that when you click a show that's airing today on the website it actually shows which episode is the one to air today. Is there a way to do that with the API?
Example: http://41.media.tumblr.com/eee6e4a197c62345f57a14fc35045fcd/tumblr_o0mdwgyLDN1rqt3bpo1_1280.png
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från jhtd
den 11 januari 2016 vid 11:37 AM
With http://api.themoviedb.org/3/tv/{show_id} you can get the last aired season (which will be the current one). Using that season ID with http://api.themoviedb.org/3/tv/{show_id}/season/{season_id} will give you details of every episode in that season, including air_date.
You can use that date to do all sorts of things. Like not only the 'airing today' thing, but 'next episodes', 'previously'...