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

Languages are not fetched correctly #335

Open
koichirose opened this issue Nov 12, 2024 · 3 comments
Open

Languages are not fetched correctly #335

koichirose opened this issue Nov 12, 2024 · 3 comments

Comments

@koichirose
Copy link

Description

Languages are not fetched anymore since a few weeks ago

Movies / TV-Shows / Person

All movies, haven't tried tv shows

Type

Bug

Code

$languages = $imdb_movie->languages();

Expected Results / What do you want to do?

It should return a list of languages

Actual Results / What is happening?

It returns an empty array

@duck7000
Copy link
Contributor

I wouldn't bother to add issues to this version as it seems abandoned.

If you want a working version with GraphQL check out my repo here
https://github.com/duck7000/imdbGraphQLPHP

And for the record this isn't a cry/try to lurk people to my github, i'm just trying to help to get a working version.

@AnonTester
Copy link

The fix is very simple. In file src/Imdb/Title.php edit line 657 and add a forward slash after title:

                '!href="/search/title/\?.+?primary_language=([^&]*)[^>]*>\s*(.*?)\s*</a>(\s+\((.*?)\)|)!m',

@XaXo81
Copy link

XaXo81 commented Jan 8, 2025

The fix is very simple. In file src/Imdb/Title.php edit line 657 and add a forward slash after title:

                '!href="/search/title/\?.+?primary_language=([^&]*)[^>]*>\s*(.*?)\s*</a>(\s+\((.*?)\)|)!m',

Thanks! It's working.

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