Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Episode Listing not working #318

Open
guardiaopt opened this issue Aug 4, 2023 · 10 comments
Open

Episode Listing not working #318

guardiaopt opened this issue Aug 4, 2023 · 10 comments

Comments

@guardiaopt
Copy link

guardiaopt commented Aug 4, 2023

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 ( )

@Thomasdouscha
Copy link

Thomasdouscha commented Aug 4, 2023 via email

@guardiaopt
Copy link
Author

guardiaopt commented Aug 4, 2023

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';

@duck7000
Copy link
Contributor

duck7000 commented Aug 5, 2023

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

@mam4dali
Copy link
Contributor

mam4dali commented Aug 5, 2023

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
Copy link
Contributor

mam4dali commented Aug 5, 2023

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 added a commit to mam4dali/imdbphp that referenced this issue Aug 5, 2023
@duck7000
Copy link
Contributor

duck7000 commented Aug 5, 2023

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

@mam4dali
Copy link
Contributor

mam4dali commented Aug 5, 2023

I have made some changes and will test them in the coming days. If everything goes smoothly, I will submit a merge request:
mam4dali@74f2036

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.

@duck7000
Copy link
Contributor

duck7000 commented Aug 5, 2023

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

@mam4dali
Copy link
Contributor

mam4dali commented Aug 5, 2023

@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.

@duck7000
Copy link
Contributor

duck7000 commented Aug 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants