From d56cde71850467cbbea946c682371defd442fe2f Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 11:20:22 +0100 Subject: [PATCH 01/13] Title::creator() --- src/Imdb/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index aa292b3f..6071c4f4 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -778,7 +778,7 @@ public function creator() if ($creator->{'@type'} === 'Person') { $result[] = array( 'name' => $creator->name, - 'imdb' => rtrim(str_replace('/name/nm', '', $creator->url), '/') + 'imdb' => preg_replace('@.*name\/nm(\d+).*@i', '$1', $creator->url) ); } } From a01d81a9f992f30c399b21571f698974310e4cc6 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 11:34:31 +0100 Subject: [PATCH 02/13] Title::metacriticRating() --- src/Imdb/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index 6071c4f4..a876619a 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -489,7 +489,7 @@ public function votes() public function metacriticRating() { $xpath = $this->getXpathPage("Title"); - $extract = $xpath->query("//span[@class='score-meta']"); + $extract = $xpath->query("//span[contains(@class, 'metacritic-score-box')]"); if ($extract && $extract->item(0) != null) { return intval(trim($extract->item(0)->nodeValue)); } From ee47e3ac98a462c51369db233d91274191cc3798 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 11:48:35 +0100 Subject: [PATCH 03/13] Title::crazy_credits() --- src/Imdb/Title.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index a876619a..3daf5ef9 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -2003,12 +2003,14 @@ public function crazy_credits() { if (empty($this->crazy_credits)) { if (preg_match_all( - '!
\s*(.*?)\s*
!ims', + '!

\s*(.*?)\s*

!ims', $this->getPage("CrazyCredits"), $matches )) { foreach ($matches[1] as $credit) { - $this->crazy_credits[] = trim(strip_tags($credit)); + $this->crazy_credits[] = str_replace(array("\r", "\n"), ' ', trim( + strip_tags(htmlspecialchars_decode($credit, ENT_QUOTES)) + )); } } } From 78844746862504535f6c7f83b9dc2792e8164808 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 12:58:20 +0100 Subject: [PATCH 04/13] Title::goofs() --- src/Imdb/Title.php | 57 +++++++++++++++++++++++----------------------- 1 file changed, 29 insertions(+), 28 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index 3daf5ef9..10472656 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -116,7 +116,7 @@ class Title extends MdbBase "CrazyCredits" => "/crazycredits", "Credits" => "/fullcredits", "Episodes" => "/episodes", - "Goofs" => "/trivia?tab=gf", + "Goofs" => "/goofs", "Keywords" => "/keywords", "Locations" => "/locations", "OfficialSites" => "/officialsites", @@ -2123,42 +2123,43 @@ public function episodes() * @return array goofs (array[0..n] of array[type,content] * @see IMDB page /goofs * @version Spoilers are currently skipped (differently formatted) + * @version Each goof category is limited to 5 entries */ public function goofs() { if (empty($this->goofs)) { - $page = $this->getPage("Goofs"); - if (empty($page)) { + $xpath = $this->getXpathPage("Goofs"); + if (empty($xpath)) { return array(); } // no such page - if (@preg_match_all( - '@

(.+?)(!? )

\s*(.+?)\s*(?=

|
page["Goofs"], - $matches - )) { - $gc = count($matches[1]); - for ($i = 0; $i < $gc; ++$i) { - if ($matches[1][$i] == 'Spoilers') { - continue; - } // no spoilers, moreover they are differently formatted - preg_match_all( - '!
)?(.+?)\s*
\s*goofs[] = array( - "type" => $matches[1][$i], - "content" => str_replace( - 'href="/', - 'href="https://' . $this->imdbsite . '/', - trim($goofy[2][$k]) - ) - ); + $ids = array(); + + $cells = $xpath->query("//h3[@class='ipc-title__text']//span"); + foreach ($cells as $cell) { + if ($cell->attributes->length) { + foreach ($cell->attributes as $attribute) { + if ($attribute->nodeName === 'id') { + $ids[$attribute->nodeValue] = trim($cell->nodeValue); + } } } } + + ksort($ids); + + foreach ($ids as $id => $title) { + $cells = $xpath->query("//div[@data-testid='sub-section-$id']//div[@class='ipc-html-content-inner-div']"); + foreach ($cells as $cell) { + $this->goofs[] = array( + "type" => $title, + "content" => str_replace( + 'href="/', + 'href="https://' . $this->imdbsite . '/', + trim($cell->nodeValue) + ) + ); + } + } } return $this->goofs; } From 4d28119aa6d1cc52a2e6b98beb527b76ae3b3f29 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 13:11:25 +0100 Subject: [PATCH 05/13] Title::quotes() and Title::quotes_split() --- src/Imdb/Title.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index 10472656..a8025666 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -2180,7 +2180,7 @@ public function quotes() } if (preg_match_all( - '!
\s*(.*?)\s*
!ims', + '!
\s*(.*?)\s*
!ims', str_replace("\n", " ", $page), $matches )) { @@ -2209,11 +2209,11 @@ public function quotes_split() $i = 0; if (!empty($this->moviequotes)) { foreach ($this->moviequotes as $moviequotes) { - if (@preg_match_all('!

\s*(.*?)\s*

!', $moviequotes, $matches)) { + if (@preg_match_all('!
  • \s*(.*?)\s*
  • !', $moviequotes, $matches)) { if (!empty($matches[1])) { foreach ($matches[1] as $quote) { if (@preg_match( - '!href="([^"]*)"\s*>.+?character">(.*?)(.*?)<\/a>:(.*)!', $quote, $match )) { From 1beb3636e407c49b2b245a382a206294ea31196d Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 13:49:37 +0100 Subject: [PATCH 06/13] Title::locations() --- src/Imdb/Title.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index a8025666..e66da32a 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -2696,14 +2696,14 @@ function ($attr) { * Filming locations * @return string[] * @see IMDB page /locations + * @version Limited to 5 locations */ public function locations() { if (empty($this->locations)) { - $xpath = $this->getXpathPage("Locations"); - $cells = $xpath->query("//section[@id=\"filming_locations\"]//dt"); - foreach ($cells as $cell) { - $this->locations[] = trim($cell->nodeValue); + $locations = $this->XmlNextJson("Locations")->xpath("//cardText"); + foreach ($locations as $location) { + $this->locations[] = trim(strval($location)); } } return $this->locations; @@ -3194,14 +3194,12 @@ protected function arrayToXml($array, &$xml) } /** + * @param string $page * @return \SimpleXMLElement */ - protected function XmlNextJson() + protected function XmlNextJson($page = "Title") { - if ($this->XmlNextJson) { - return $this->XmlNextJson; - } - $xpath = $this->getXpathPage("Title"); + $xpath = $this->getXpathPage($page); $script = $xpath->query("//script[@id='__NEXT_DATA__']")->item(0)->nodeValue; $decode = json_decode($script, true); $xml = new \SimpleXMLElement(''); From 63b162542f2c20783822e0fd7c33c281938435ec Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 13:54:19 +0100 Subject: [PATCH 07/13] Title::keywords_all() --- src/Imdb/Title.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index e66da32a..2121a717 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -2946,12 +2946,13 @@ public function officialSites() /** Get the complete keywords for the movie * @return array keywords * @see IMDB page /keywords + * @version Limited to 50 keywords */ public function keywords_all() { if (empty($this->all_keywords)) { $page = $this->getPage("Keywords"); - if (preg_match_all('|]+?>(.*?)|', $page, $matches)) { $this->all_keywords = $matches[1]; } } From 0abe4c230882780ba711824192ee1d85beb7ac18 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 14:14:57 +0100 Subject: [PATCH 08/13] Title::filmingDates() --- src/Imdb/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index 2121a717..efec12a5 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -3110,7 +3110,7 @@ public function filmingDates() { if (empty($this->filmingDates)) { $page = $this->getPage("Locations"); - if (@preg_match("!]+>Filming Dates

    \s*\n*(.*?)(
    \n*)*filmingDates = array( 'beginning' => date('Y-m-d', strtotime($dates[1])), From 37ab564a8310e4efb8a184e1d341f30e9d921a3e Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 14:37:55 +0100 Subject: [PATCH 09/13] Title::filmingDates() --- src/Imdb/Title.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index efec12a5..38ed5caa 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -3110,8 +3110,8 @@ public function filmingDates() { if (empty($this->filmingDates)) { $page = $this->getPage("Locations"); - if (@preg_match('!sub-section-flmg_dates".*?<\/section!ims', $page, $filDates)) { - if (preg_match("/(\d+ \w+ \d{4}) - (\d+ \w+ \d{4})/", strip_tags($filDates[1]), $dates)) { + if (@preg_match('!sub-section-flmg_dates"[^>]*?>(.*?)<\/section>!ims', $page, $filDates)) { + if (preg_match("/(\w+ \d+, \d{4}) - (\w+ \d+, \d{4})/", strip_tags($filDates[1]), $dates)) { $this->filmingDates = array( 'beginning' => date('Y-m-d', strtotime($dates[1])), 'end' => date('Y-m-d', strtotime($dates[2])), From ff6b96e71d418bf3b2e3dea3820c115a0320f073 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 14:45:57 +0100 Subject: [PATCH 10/13] Title::trivia() --- src/Imdb/Title.php | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/Imdb/Title.php b/src/Imdb/Title.php index 38ed5caa..32457088 100755 --- a/src/Imdb/Title.php +++ b/src/Imdb/Title.php @@ -2455,6 +2455,7 @@ public function videosites() * @param boolean $spoil *Deprecated*. There are no longer spoiler trivia on imdb * @return array trivia (array[0..n] string * @see IMDB page /trivia + * @version Limited to 5 trivias */ public function trivia($spoil = false) { @@ -2465,16 +2466,19 @@ public function trivia($spoil = false) } // no such page if ($spoil) { return []; - } else { - preg_match('!
    page["Trivia"], $block); - if (empty($block)) { - preg_match('!
    !ims', $this->page["Trivia"], $block); - } } - if (preg_match_all('!
    \s*(.*?)\s*
    \s*trivia[] = str_replace('href="/', 'href="https://' . $this->imdbsite . "/", $matches[1][$i]); + + if (preg_match_all( + '!
    \s*(.*?)\s*
    !ims', + str_replace("\n", " ", $page), + $matches + )) { + foreach ($matches[1] as $match) { + $this->trivia[] = str_replace( + 'href="/name/', + 'href="https://' . $this->imdbsite . '/name/', + $match + ); } } } From d28d11febc99da154b71a205ab105f99339da4f4 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 18 Feb 2024 15:00:29 +0100 Subject: [PATCH 11/13] Update tests --- tests/CalendarTest.php | 2 +- tests/ChartsTest.php | 2 +- tests/PersonSearchTest.php | 2 +- tests/PersonTest.php | 2 +- tests/TitleSearchAdvancedTest.php | 2 +- tests/TitleSearchTest.php | 2 +- tests/TitleTest.php | 36 +++++++++++++++---------------- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/tests/CalendarTest.php b/tests/CalendarTest.php index 89f06579..58c0bbd1 100644 --- a/tests/CalendarTest.php +++ b/tests/CalendarTest.php @@ -28,7 +28,7 @@ protected function getCalendar() $config->imdbsite = 'www.imdb.com'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; return new Calendar($config); } diff --git a/tests/ChartsTest.php b/tests/ChartsTest.php index 163aa8be..1efb74c2 100644 --- a/tests/ChartsTest.php +++ b/tests/ChartsTest.php @@ -45,7 +45,7 @@ protected function getCharts() $config->imdbsite = 'www.imdb.com'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; return new Charts($config); } diff --git a/tests/PersonSearchTest.php b/tests/PersonSearchTest.php index df1eabc3..41b87ab9 100644 --- a/tests/PersonSearchTest.php +++ b/tests/PersonSearchTest.php @@ -37,7 +37,7 @@ protected function getimdbpersonsearch() $config->language = 'en'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; $config->debug = false; $imdbsearch = new PersonSearch($config); diff --git a/tests/PersonTest.php b/tests/PersonTest.php index d44baf8c..7740eb45 100644 --- a/tests/PersonTest.php +++ b/tests/PersonTest.php @@ -515,7 +515,7 @@ protected function getimdb_person($id = '0594503') $config->imdbsite = 'www.imdb.com'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; return new \Imdb\Person($id, $config); } diff --git a/tests/TitleSearchAdvancedTest.php b/tests/TitleSearchAdvancedTest.php index 84fa1291..4c4e88d2 100644 --- a/tests/TitleSearchAdvancedTest.php +++ b/tests/TitleSearchAdvancedTest.php @@ -81,7 +81,7 @@ protected function getTitleSearchAdvanced() $config->imdbsite = 'www.imdb.com'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; return new TitleSearchAdvanced($config); } diff --git a/tests/TitleSearchTest.php b/tests/TitleSearchTest.php index 83bf670a..c173aeb1 100644 --- a/tests/TitleSearchTest.php +++ b/tests/TitleSearchTest.php @@ -197,7 +197,7 @@ protected function getimdbsearch() $config->language = 'en'; $config->cachedir = realpath(dirname(__FILE__) . '/cache') . '/'; $config->usezip = false; - $config->cache_expire = 3600; + $config->cache_expire = 86400; $config->debug = false; $imdbsearch = new TitleSearch($config); diff --git a/tests/TitleTest.php b/tests/TitleTest.php index 810994b6..5c6a22b4 100644 --- a/tests/TitleTest.php +++ b/tests/TitleTest.php @@ -225,7 +225,7 @@ public function testOrig_title_with_no_original() public function testOrig_title_with_original() { $imdb = $this->getImdb('0087544'); - $this->assertEquals('Kaze no tani no Naushika', $imdb->orig_title()); + $this->assertEquals('Kaze no Tani no NausicaƤ', $imdb->orig_title()); } public function testYear_for_a_film() @@ -356,8 +356,8 @@ public function testVotes() { $imdb = $this->getImdb(); $votes = $imdb->votes(); - $this->assertGreaterThan(1500000, $votes); - $this->assertLessThan(2000000, $votes); + $this->assertGreaterThan(2000000, $votes); + $this->assertLessThan(3000000, $votes); } // public function testVotes_no_votes() @@ -439,9 +439,9 @@ public function testKeywords() { $imdb = $this->getImdb("0306414"); $keywords = $imdb->keywords(); - $this->assertTrue(in_array('corruption', $keywords)); $this->assertTrue(in_array('drug trafficking', $keywords)); - $this->assertTrue(in_array('urban decay', $keywords)); + $this->assertTrue(in_array('baltimore maryland', $keywords)); + $this->assertTrue(in_array('police', $keywords)); } public function testLanguage() @@ -758,9 +758,9 @@ public function testAlsoknow() $matchNames = []; foreach ($akas as $aka) { - if ($aka['title'] == 'Kaze no tani no Naushika' && $aka['comment'] == 'original title') { + if ($aka['title'] == 'Kaze no Tani no NausicaƤ' && $aka['comment'] == 'original title') { // Original title - $this->assertEquals('Kaze no tani no Naushika', $aka['title']); + $this->assertEquals('Kaze no Tani no NausicaƤ', $aka['title']); $this->assertEquals( $aka['comment'], 'original title' @@ -1448,8 +1448,8 @@ public function testGoofs() $goofs = $imdb->goofs(); $this->assertIsArray($goofs); - $this->assertGreaterThan(140, count($goofs)); - $this->assertLessThan(170, count($goofs)); + $this->assertGreaterThan(40, count($goofs)); + $this->assertLessThan(51, count($goofs)); $this->assertEquals('Audio/visual unsynchronised', $goofs[0]['type']); $this->assertEquals('When Neo meets Trinity for the first time in the nightclub she is close to him talking in his ear. Even though she pauses between sentences the shot from the back of Trinity shows that her jaw is still moving during the pauses.', $goofs[0]['content']); @@ -1460,7 +1460,7 @@ public function testQuotes() $imdb = $this->getImdb(); $quotes = $imdb->quotes(); - $this->assertGreaterThan(100, count($quotes)); + $this->assertEquals(50, count($quotes)); } public function testQuotes_split() @@ -1488,7 +1488,7 @@ public function testQuotes_split() array( 'quote' => 'All in the game yo, all in the game.', 'character' => array( - 'url' => 'https://www.imdb.com/name/nm0931324/?ref_=tt_trv_qu', + 'url' => 'https://www.imdb.com/name/nm0931324/?ref_=ttqu_qu', 'name' => 'Omar' ) ) @@ -1543,8 +1543,8 @@ public function testTrivia() $imdb = $this->getImdb(); $trivia = $imdb->trivia(); - $this->assertGreaterThan(100, count($trivia)); - $this->assertTrue(in_array('The lobby shootout took ten days to film.', $trivia)); + $this->assertEquals(5, count($trivia)); + $this->assertTrue(in_array('The opening action scene took six months of training and four days to shoot.', $trivia)); } public function testTrivia_spoilers() @@ -1639,7 +1639,7 @@ public function test_locations() { $imdb = $this->getImdb(107290); $locations = $imdb->locations(); - $this->assertGreaterThan(17, $locations); + $this->assertEquals(5, count($locations)); $matches = 0; foreach ($locations as $location) { @@ -1665,7 +1665,7 @@ public function testProdCompany() $prodCompany = $imdb->prodCompany(); $this->assertEquals('Warner Bros.', $prodCompany[0]['name']); $this->stringStartsWith('https://www.imdb.com/company/co0002663')->evaluate($prodCompany[0]['url']); - $this->assertEquals('(presents)', $prodCompany[0]['notes']); + $this->assertEquals('(presentation)', $prodCompany[0]['notes']); } public function testDistCompany() @@ -1714,7 +1714,7 @@ public function testParentalGuide_spoilers() { $imdb = $this->getImdb(120737); $parentalGuide = $imdb->parentalGuide(true); - $violence = $parentalGuide['Frightening'][1]; + $violence = $parentalGuide['Frightening'][0]; $this->assertSame(0, strpos($violence, 'Gandalf\'s "death" scene')); } @@ -1735,9 +1735,9 @@ public function testKeywords_all() { $imdb = $this->getImdb(); $keywords_all = $imdb->keywords_all(); - $this->assertGreaterThan(250, count($keywords_all)); + $this->assertEquals(50, count($keywords_all)); $this->assertTrue(in_array('truth', $keywords_all)); - $this->assertTrue(in_array('human machine relationship', $keywords_all)); + $this->assertTrue(in_array('reference to alice in wonderland', $keywords_all)); } public function test_title_redirects_are_followed() From 1cc009a76d3f8cb222bfb7b748b7c51e939aac09 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 25 Feb 2024 11:14:18 +0100 Subject: [PATCH 12/13] Update tests --- tests/TitleTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TitleTest.php b/tests/TitleTest.php index 5c6a22b4..b2cf7a4b 100644 --- a/tests/TitleTest.php +++ b/tests/TitleTest.php @@ -1665,7 +1665,7 @@ public function testProdCompany() $prodCompany = $imdb->prodCompany(); $this->assertEquals('Warner Bros.', $prodCompany[0]['name']); $this->stringStartsWith('https://www.imdb.com/company/co0002663')->evaluate($prodCompany[0]['url']); - $this->assertEquals('(presentation)', $prodCompany[0]['notes']); + $this->assertEquals('(A Warner Bros. Presentation)', $prodCompany[0]['notes']); } public function testDistCompany() From c622579ac6a232d41ecd95d1cab20975da1b25d1 Mon Sep 17 00:00:00 2001 From: Johan Eklund Date: Sun, 25 Feb 2024 11:22:15 +0100 Subject: [PATCH 13/13] Release 8.2.0 --- doc/CHANGELOG | 15 +++++++++++++-- src/Imdb/MdbBase.php | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/doc/CHANGELOG b/doc/CHANGELOG index 85b3cb88..03934c4f 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -2,9 +2,21 @@ History for IMDBPHP ==================== +v8.2.0 (25.02.2024) +------------------- ++ Add Podcast Episode support #326 by @Fossil01 +! Fix Title::trivia() - limited to 5 entries +! Fix Title::filmingDates() +! Fix Title::keywords_all() - limited to 50 entries +! Fix Title::locations() - limited to 5 entries +! Fix Title::quotes() and Title::quotes_split() +! Fix Title::goofs() - limited to 5 entries +! Fix Title::crazy_credits() +! Fix Title::metacriticRating() +! Fix Title::creator() + v8.1.0 (14.03.2023) ------------------- - + Add Psr/Log v2 to allowed versions in composer.json ! Fix Title::aspect_ratio no longer returning anything @@ -22,7 +34,6 @@ v8.0.1 (14.02.2023) v8.0.0 (13.02.2023) ------------------- - ! 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. diff --git a/src/Imdb/MdbBase.php b/src/Imdb/MdbBase.php index 986acb4a..a6c088db 100644 --- a/src/Imdb/MdbBase.php +++ b/src/Imdb/MdbBase.php @@ -22,7 +22,7 @@ */ class MdbBase extends Config { - public $version = '8.1.0'; + public $version = '8.2.0'; protected $months = array( "January" => "01",