Skip to content

Support for seasons and episodes #1

@tobiassjosten

Description

@tobiassjosten

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions