B: switched to using config service in tmdb service
This commit is contained in:
1 parent
2d7bf91543
commit
cc1d1cdadf
2 files changed
+18
-5
No files matched your search
@@ -20,6 +20,7 @@ class ConfigService {
|
||||
constructor() {
|
||||
if (!ConfigService.instance) {
|
||||
ConfigService.instance = this;
|
||||
this.settings = this.getSettings();
|
||||
}
|
||||
return ConfigService.instance;
|
||||
}
|
||||
@@ -87,6 +88,15 @@ class ConfigService {
|
||||
fs.mkdirSync(collectionsPostersDir, { recursive: true });
|
||||
fs.mkdirSync(collectionsBackdropsDir, { recursive: true });
|
||||
}
|
||||
|
||||
getTmdbApiUrl() {
|
||||
return this.settings.tmdbApiUrl;
|
||||
}
|
||||
|
||||
getTmdbApiKey() {
|
||||
return this.settings.tmdbApiKey;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// const instance = new ConfigService();
|
||||
|
||||
Reference in new issue
Block a user