minor fixes/changes
This commit is contained in:
1 parent
252f15ffd9
commit
336519be70
8 files changed
+41
-10
No files matched your search
@@ -97,6 +97,10 @@ function scheduleDownloads(media, mediaType, mediaDir, downloadTasks, downloaded
|
||||
);
|
||||
}
|
||||
|
||||
function getMediaFolder() {
|
||||
return getSettings().userDataPath;
|
||||
}
|
||||
|
||||
function createMediaFolders() {
|
||||
const settings = getSettings();
|
||||
const dataPath = settings.userDataPath;
|
||||
@@ -104,10 +108,12 @@ function createMediaFolders() {
|
||||
const posterDir = path.join(dataPath, 'images', 'entries', 'posters');
|
||||
const backdropDir = path.join(dataPath, 'images', 'entries', 'backdrops');
|
||||
const logoDir = path.join(dataPath, 'images', 'entries', 'logos');
|
||||
const collectionsPostersDir = path.join(dataPath, 'images', 'collections', 'posters');
|
||||
|
||||
fs.mkdirSync(posterDir, { recursive: true });
|
||||
fs.mkdirSync(backdropDir, { recursive: true });
|
||||
fs.mkdirSync(logoDir, { recursive: true });
|
||||
fs.mkdirSync(collectionsPostersDir, { recursive: true });
|
||||
|
||||
// console.log(`Created media folders.`);
|
||||
}
|
||||
@@ -115,4 +121,5 @@ function createMediaFolders() {
|
||||
module.exports = {
|
||||
getEntryMedia,
|
||||
createMediaFolders,
|
||||
getMediaFolder,
|
||||
};
|
||||
Reference in new issue
Block a user