fix imdb in new structure

This commit is contained in:
xiaomlove
2021-01-14 20:44:24 +08:00
parent f4d887531c
commit 9d1dff2a62
11 changed files with 131 additions and 85 deletions

View File

@@ -209,6 +209,9 @@ $responseBody = $response->getBody();
}
if( $this->page[$wt] ){ //storecache
if ($this->storecache) {
if (!is_dir($this->cachedir)) {
$mkdirResult = mkdir($this->cachedir, 0777, true);
}
$fp = fopen ("$this->cachedir/$this->imdbID.$wt", "w");
fputs ($fp, $this->page[$wt]);
fclose ($fp);