mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fixed: idmb getMovie() different id
This commit is contained in:
@@ -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 = '')
|
||||
|
||||
Reference in New Issue
Block a user