From acf7e67d0d3aecd1c3efad1406dbd3e99a66a3aa Mon Sep 17 00:00:00 2001 From: MasterAcnolo <68693319+MasterAcnolo@users.noreply.github.com> Date: Fri, 14 Aug 2026 22:08:41 +0200 Subject: [PATCH] feat: custom signature in every file download, as a comment --- server/helpers/buildArgs.helpers.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/helpers/buildArgs.helpers.js b/server/helpers/buildArgs.helpers.js index 892c797..dcb1bd3 100644 --- a/server/helpers/buildArgs.helpers.js +++ b/server/helpers/buildArgs.helpers.js @@ -4,6 +4,7 @@ const getUserBrowser = require("./getBrowser.helpers.js"); const { ffmpegPath, denoPath} = require("./path.helpers.js"); const { configFeatures } = require("../../config.js"); const { logger } = require("../logger.js"); +const config = require("../../config") /** * Validates whether the provided codec is supported by the application. @@ -130,6 +131,14 @@ function buildYtDlpArgs({url, audioOnly, quality, outputFolder, isPlaylist}) { outputTemplate = "%(playlist_index)02d - %(title)s.%(ext)s"; } + // Add a custom signature in each file downloaded with the app. It's a small things but i found it cool :) + if (configFeatures.addMetadata) { + args.push( + "--postprocessor-args", + `ffmpeg:-metadata comment="Downloaded with Freedom Loader v${config.version}"` + ); +} + args.push("-o", path.join(outputFolder, outputTemplate)); args.push(url);