-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I'm building an application where I'd love to use something like this library. But I miss the functionality to fetch season and episode information. So how about we agree on an approach to do that and then I'll put together a PR for you?
The available seasons are already available in the combined page. I'm not sure you'd need any information about the specific seasons, other than their number, so maybe the data could be structured as such:
$show->seasons = array('1' => array($episode1x1, $episode1x2), '2' => ...);
Where $episode1x1 are instances of a new Episode class. These would be fetched from /title/ttXXX/episodes?season=X, lazily as you are already doing for the main data.
To me it feels rather straight forward. But what I'm not all clear about is whether or not to seperate "movies" from "shows"? In some regards it'd make sense but they mostly have the same data. So unless IMDb themselves seperate the two, maybe this library shouldn't neither?