Languages are not fetched correctly
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
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.
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',
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.