Try 30 days of free premium.

Season end date via schedule API?

vBm wrote 7 years ago: 1

Is there an easy way to get end date for a show's season via schedule API ? If not I guess I'll go with querying each and every show and if there's an end date push it into an array which i'll use later.

Or if this is not a recommended approach please advice on which path to take xD

Thanks in advance.


gazza911 wrote 7 years ago: 1

There's no 100% guaranteed way.

You can check if number of episodes in season equals the episode order, but this will still fail if 2-parters are offsetting it. If it then you can use the get episode by number on the last one.

vBm wrote 7 years ago: 1

Yeah, something like that i already wanted to do but i was hoping there's a more elegant way that would decrease strain on both server and client's end.

Try 30 days of free premium.