tboothman / imdbphp

PHP library for retrieving film and tv information from IMDb
253 stars 84 forks source link

Problem with Kung Fu - TV Series #239

Closed guardiaopt closed 3 years ago

guardiaopt commented 3 years ago

I just tested version 7 and the episode page is not obtained in the following TV Series:

https://www.imdb.com/title/tt7475590/

Does anyone else have the same problem?

tboothman commented 3 years ago

What do you mean by 'the episode page'? Which method are you using?

guardiaopt commented 3 years ago

For example: .... $imdbid=7475590; $config = new \Imdb\Config(); $config->language = 'en-US,en'; $config->storecache = true; $movie = new \Imdb\Title($imdbid, $config); $seasons = $movie->episodes(); print_r($seasons);

No results are returned and no file title.tt7475590.episodes.season=1 is created in the cache folder.

tboothman commented 3 years ago

Oh yea I see why it's not working. Title::seasons() looks like it doesn't work for single season shows ... and despite explicitely calling out in the many tests for episodes() that they were all for multiseason shows there's no tests for single season shows :S