Backend: minor fixes + Added people media folder auto creating & mutler upload function
This commit is contained in:
1 parent
d3dbd7c3e3
commit
f1cd3f9167
4 files changed
+29
-14
No files matched your search
@@ -73,7 +73,6 @@ class ConfigService {
|
||||
getMediaFolder() {
|
||||
return this.getSettings().userDataPath;
|
||||
}
|
||||
|
||||
createMediaFolders() {
|
||||
const settings = this.getSettings();
|
||||
const dataPath = settings.userDataPath;
|
||||
@@ -85,6 +84,7 @@ class ConfigService {
|
||||
const collectionsBackdropsDir = path.join(dataPath, 'images', 'collections', 'backdrops');
|
||||
const seasonsPostersDir = path.join(dataPath, 'images', 'seasons', 'posters');
|
||||
const episodesStillsDir = path.join(dataPath, 'images', 'episodes', 'stills');
|
||||
const peopleProfilesDir = path.join(dataPath, 'images', 'people', 'profiles');
|
||||
|
||||
fs.mkdirSync(posterDir, { recursive: true });
|
||||
fs.mkdirSync(backdropDir, { recursive: true });
|
||||
@@ -93,6 +93,7 @@ class ConfigService {
|
||||
fs.mkdirSync(collectionsBackdropsDir, { recursive: true });
|
||||
fs.mkdirSync(seasonsPostersDir, { recursive: true });
|
||||
fs.mkdirSync(episodesStillsDir, { recursive: true });
|
||||
fs.mkdirSync(peopleProfilesDir, { recursive: true });
|
||||
}
|
||||
|
||||
getTmdbApiUrl() {
|
||||
|
||||
Reference in new issue
Block a user