add imdb language

This commit is contained in:
xiaomlove
2022-07-02 21:22:12 +08:00
parent 5cc25468a7
commit 9cf1cc7277
12 changed files with 85 additions and 10 deletions
+7
View File
@@ -28,9 +28,16 @@ class Imdb
$config->cachedir = $cacheDir;
$config->photodir = $photoDir;
$config->photoroot = $photoRoot;
$config->language = get_setting('main.imdb_language', 'en-US');
$this->config = $config;
}
public static function listSupportLanguages(): array
{
$data = require_once sprintf('%s/resources/lang/%s/imdb.php', ROOT_PATH, get_langfolder_cookie(true));
return $data['languages'];
}
public function setDebug($debug)
{
$this->config->debug = $debug;