imdbphp icon indicating copy to clipboard operation
imdbphp copied to clipboard

Episode Listing not working

Open guardiaopt opened this issue 1 year ago • 10 comments

For the past few days, the episode listing has ceased to function correctly, as observed in this link: https://www.imdb.com/title/tt13833978/. Is anyone else experiencing the same issue?

$imdbObj = new \Imdb\Title(13833978); $episodes = $imdbObj->episodes(); print_r($episodes);

Result: Array ( )

guardiaopt avatar Aug 04 '23 11:08 guardiaopt

I have tried to get it and there is no issue.

guardiaopt @.***>, 4 Ağu 2023 Cum, 14:58 tarihinde şunu yazdı:

For the past few days, the episode listing has ceased to function correctly, as observed in this link: https://www.imdb.com/title/tt13833978/. Is anyone else experiencing the same issue?

— Reply to this email directly, view it on GitHub https://github.com/tboothman/imdbphp/issues/318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPFI3CSNM5DB6GQEFEMFSDXTTPU3ANCNFSM6AAAAAA3EDKBGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Thomasdouscha avatar Aug 04 '23 21:08 Thomasdouscha

My IP is German, but I set the language to English in the settings. Maybe the issue depends on the country I'm in.

$config->language = 'en-US,en';

guardiaopt avatar Aug 04 '23 21:08 guardiaopt

Imdb converted this page to a new layout so episodes() no longer work

duck7000 avatar Aug 05 '23 15:08 duck7000

The issue has been occurring for over a week. This is a new page: image

HTML source of the new page: new source.txt

mam4dali avatar Aug 05 '23 18:08 mam4dali

I found this address to retrieve information, but I'm unsure about its reliability. There's a token inside it, and it might expire after a while: https://www.imdb.com/_next/data/5s-5cAOpj5F5KR73DcheJ/title/tt2560140/episodes.json?season=1&tconst=tt2560140

mam4dali avatar Aug 05 '23 18:08 mam4dali

No need for trying to fix this, the only way to fix it is to use GraphQL See #314 If anybody is interested to fix imdphp you may use my code to do so

duck7000 avatar Aug 05 '23 19:08 duck7000

I have made some changes and will test them in the coming days. If everything goes smoothly, I will submit a merge request: https://github.com/mam4dali/imdbphp/commit/74f2036794a183cbeb2b02cba942da37c9ad7c53

Of course, in my opinion, GraphQL is the best approach. I don't have much knowledge about it, but if someone can solve it using that method, we welcome it.

mam4dali avatar Aug 05 '23 19:08 mam4dali

@mam4dali that is exactly what i did.. did you read #314?

duck7000 avatar Aug 05 '23 19:08 duck7000

@mam4dali that is exactly what i did.. did you read #314 and checked my repo?

Yes, but I'm not sure if it will merge smoothly with the current repository.

mam4dali avatar Aug 05 '23 21:08 mam4dali

Possibly not, you might make some adjustments although it is almost the same But it is a very good starting point and it works great

duck7000 avatar Aug 06 '23 09:08 duck7000