Skip to content

v8.0.0

Compare
Choose a tag to compare
@tboothman tboothman released this 12 Feb 22:35
· 35 commits to master since this release

IMDb made changes to a few of its pages, the biggest change is not showing all information on initial page load. Because of this we've changed to loading this data from IMDb's graphql api instead.
This should make no difference to users of the library except the graphql code does not localise data. Any of the methods using it (every method mentioned in this release) might not return country/language specific information and will not respect the Config::language setting. Please raise an issue if this causes a problem.

Breaking changes

  • Title::plot() returns plain text utf-8 strings rather than html. It no longer contains the author at the end (You can get the author from Title::plot_split())
  • Title::plot_split() also has plain text utf-8 strings rather than html in its plot field
  • Title::releaseInfo() return has changed. The country strings have changed slightly, the dates are numbers rather than stringy numbers and month has been removed.
    • Was ['country' => 'USA', 'day' => '9', 'month' => 'June', 'mon' => '06', 'year' => '1993' ]
    • Now [ 'country' => 'United States', 'day' => 9, 'mon' => 6, 'year' => 1993, 'attributes' => [ 'Washington, D.C.', 'premiere' ] ]
  • Title::alsoknow() no longer returns a year or lang field (they were previously always an empty string). It no longer returns a comment of '$language title' for each aka.

Fixes

  • Fixed these methods broken by site change: Title::releaseInfo(), Title::synopsis(), Title::alternateVersions(), Title::runtimes(), Title::distCompany(), Title::specialCompany(), Title::prodCompany(), Title::specialCompany(), Title::otherCompany(), Title::movie_recommendations(), Title::taglines(), Title::movieconnection(), Title::extReviews(), Title::officialSites(), Title::videosites()

Additions

  • Title::alsoknow() now returns a countryCode, language and languageCode for each AKA.
  • Title::runtimes() now returns a country and countryCode
  • Title::videosites() now returns a language, languageCode but not a type.
    • Now ['url' => 'x', 'site' => FILM.TV, 'desc' => trailer, 'language' => German, 'languageCode' => de]
    • Was ['url'=>'x', 'site' => 'FILM.TV', 'desc' => 'trailer', 'type' => '']