fixed: idmb getMovie() different id

This commit is contained in:
xiaomlove
2021-03-17 13:42:16 +08:00
parent 7f1b97a4d8
commit 96a8089092

View File

@@ -9,7 +9,7 @@ class Imdb
{
private $config;
private $movie;
private $movies = [];
private $pages = array('Title', 'Credits', 'ReleaseInfo', );
@@ -98,10 +98,10 @@ class Imdb
public function getMovie($id)
{
if (!$this->movie) {
$this->movie = new Title($id, $this->config);
if (!isset($this->movies[$id])) {
$this->movies[$id] = new Title($id, $this->config);
}
return $this->movie;
return $this->movies[$id];
}
private function getCacheFilePath($id, $suffix = '')