mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-11-13 23:19:21 +01:00
fix: linting
This commit is contained in:
@@ -126,7 +126,6 @@ function fetchDownload(options, progressListeners, speedListeners, stageListener
|
|||||||
}
|
}
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|
||||||
const userConfig = reloadFeatures();
|
const userConfig = reloadFeatures();
|
||||||
|
|
||||||
logger.info(`CONFIG createPlaylistFolders: ${userConfig.createPlaylistFolders}`);
|
logger.info(`CONFIG createPlaylistFolders: ${userConfig.createPlaylistFolders}`);
|
||||||
@@ -175,7 +174,7 @@ function fetchDownload(options, progressListeners, speedListeners, stageListener
|
|||||||
logger.info(`[yt-dlp args] ${args.join(" ")}`);
|
logger.info(`[yt-dlp args] ${args.join(" ")}`);
|
||||||
|
|
||||||
// If we are in a non-Windows environment, we can use detached mode to allow killing the entire process group.
|
// If we are in a non-Windows environment, we can use detached mode to allow killing the entire process group.
|
||||||
const child = execFile(userYtDlp, args, { detached: process.platform !== "win32" });
|
const child = execFile(userYtDlp, args, {detached: process.platform !== "win32"});
|
||||||
currentDownloadProcess = child;
|
currentDownloadProcess = child;
|
||||||
|
|
||||||
child.on("error", err => reject(new Error(`YT-DLP Error : ${err.message}`)));
|
child.on("error", err => reject(new Error(`YT-DLP Error : ${err.message}`)));
|
||||||
|
|||||||
Reference in New Issue
Block a user