Skip to content

No Video's for TV Series #104

@Jip-Hop

Description

@Jip-Hop

Using the latest version of php-tmdb (v2.0.12) I can not get any video's (YouTube trailers, opening credits etc.) for TV Series.

        // php-tmdb will crash if the id is not present in the respository
        try {
            $entry = $repository->load($TMDBid);
        } catch (Exception $e) {
            return false;
        }
        var_dump($entry->getVideos());

This works a movie, e.g. for Straight Outta Compton the response is this:

object(Tmdb\Model\Collection\Videos)#474 (1) { ["data":protected]=> array(1) { ["000000004d8745b30000000115b57e04"]=> object(Tmdb\Model\Common\Video\Youtube)#472 (8) { ["id":"Tmdb\Model\Common\Video":private]=> string(24) "55cf3ea392514131a50049ac" ["iso6391":"Tmdb\Model\Common\Video":private]=> string(2) "en" ["key":"Tmdb\Model\Common\Video":private]=> string(11) "rsbWEF1Sju0" ["name":"Tmdb\Model\Common\Video":private]=> string(9) "Trailer 1" ["site":"Tmdb\Model\Common\Video":private]=> string(7) "YouTube" ["size":"Tmdb\Model\Common\Video":private]=> int(1080) ["type":"Tmdb\Model\Common\Video":private]=> string(7) "Trailer" ["url_format":"Tmdb\Model\Common\Video":private]=> string(33) "http://www.youtube.com/watch?v=%s" } } } 

However for a TV Series, e.g. Humans, I get this:

object(Tmdb\Model\Collection\Videos)#488 (1) { ["data":protected]=> array(0) { } } 

There is a trailer for Humans on TMDb but I can't get it with php-tmdb. This happens with all TV Series I've tested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions