mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Feat: Add Newline YT-DLP Args. Add Toggle Switches for verbose, autodownloadplaylist + Fix Thumbail misspell
This commit is contained in:
@@ -2,12 +2,15 @@
|
|||||||
"autoUpdate": true,
|
"autoUpdate": true,
|
||||||
"discordRPC": true,
|
"discordRPC": true,
|
||||||
"customTopBar": true,
|
"customTopBar": true,
|
||||||
"autoDownloadPlaylist": true,
|
|
||||||
"logSystem": true,
|
|
||||||
"autoCheckInfo": true,
|
"autoCheckInfo": true,
|
||||||
"outputTitleCheck": true,
|
|
||||||
"addThumbnail": true,
|
"addThumbnail": true,
|
||||||
"addMetadata": true,
|
"addMetadata": true,
|
||||||
|
"verboseLogs": false,
|
||||||
|
"autoDownloadPlaylist": true,
|
||||||
|
|
||||||
|
|
||||||
|
"logSystem": true,
|
||||||
|
"outputTitleCheck": true,
|
||||||
"downloadSystem": true,
|
"downloadSystem": true,
|
||||||
"notifySystem": true
|
"notifySystem": true
|
||||||
}
|
}
|
||||||
@@ -8,10 +8,12 @@ const { configFeatures } = require("../../config.js");
|
|||||||
function buildYtDlpArgs({ url, audioOnly, quality, outputFolder }) {
|
function buildYtDlpArgs({ url, audioOnly, quality, outputFolder }) {
|
||||||
|
|
||||||
const args = [
|
const args = [
|
||||||
|
configFeatures.verboseLogs ? "--verbose" : null, // Verbose Logs
|
||||||
"--cookies-from-browser", `${getUserBrowser()}`,
|
"--cookies-from-browser", `${getUserBrowser()}`,
|
||||||
"--no-continue",
|
"--no-continue",
|
||||||
"--no-overwrites",
|
"--no-overwrites",
|
||||||
configFeatures.addThumbail ? "--embed-thumbnail" : null,
|
"--newline", // YT-DLP Logs Format
|
||||||
|
configFeatures.addThumbnail ? "--embed-thumbnail" : null,
|
||||||
configFeatures.addMetadata ? "--add-metadata" : null,
|
configFeatures.addMetadata ? "--add-metadata" : null,
|
||||||
"--concurrent-fragments", "8",
|
"--concurrent-fragments", "8",
|
||||||
"--retries", "10",
|
"--retries", "10",
|
||||||
@@ -19,7 +21,8 @@ function buildYtDlpArgs({ url, audioOnly, quality, outputFolder }) {
|
|||||||
"--ffmpeg-location", ffmpegPath,
|
"--ffmpeg-location", ffmpegPath,
|
||||||
"--extractor-args","youtube:player_client=default",
|
"--extractor-args","youtube:player_client=default",
|
||||||
"--js-runtimes", `deno:${denoPath}`,
|
"--js-runtimes", `deno:${denoPath}`,
|
||||||
"-S", "vcodec:h264" // Will be replaced with a variables when i will add the settings panel (Next Update ?)
|
"-S", "vcodec:h264", // Will be replaced with a variables when i will add the settings panel (Next Update ?)
|
||||||
|
configFeatures.autoDownloadPlaylist ? "--yes-playlist" : "--no-playlist"
|
||||||
];
|
];
|
||||||
|
|
||||||
if (audioOnly) args.push("-f", "bestaudio", "--extract-audio", "--audio-format", "mp3");
|
if (audioOnly) args.push("-f", "bestaudio", "--extract-audio", "--audio-format", "mp3");
|
||||||
|
|||||||
Reference in New Issue
Block a user