mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fixed: idmb getMovie() different id
This commit is contained in:
+4
-4
@@ -9,7 +9,7 @@ class Imdb
|
|||||||
{
|
{
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
private $movie;
|
private $movies = [];
|
||||||
|
|
||||||
private $pages = array('Title', 'Credits', 'ReleaseInfo', );
|
private $pages = array('Title', 'Credits', 'ReleaseInfo', );
|
||||||
|
|
||||||
@@ -98,10 +98,10 @@ class Imdb
|
|||||||
|
|
||||||
public function getMovie($id)
|
public function getMovie($id)
|
||||||
{
|
{
|
||||||
if (!$this->movie) {
|
if (!isset($this->movies[$id])) {
|
||||||
$this->movie = new Title($id, $this->config);
|
$this->movies[$id] = new Title($id, $this->config);
|
||||||
}
|
}
|
||||||
return $this->movie;
|
return $this->movies[$id];
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getCacheFilePath($id, $suffix = '')
|
private function getCacheFilePath($id, $suffix = '')
|
||||||
|
|||||||
Reference in New Issue
Block a user