From 7f4d82498cf80450a7d11cf3509566547f79961d Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sun, 2 Feb 2025 09:00:03 +0900 Subject: modified bin/qndl --- ar/.local/bin/qndl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index 1c5be55..84c3dce 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -1,6 +1,6 @@ #!/bin/sh -YTDL_CMD_BASE="yt-dlp --continue --embed-metadata --ignore-errors --no-force-overwrites --no-playlist --verbose" +YTDL_CMD_BASE="yt-dlp --cookies-from-browser firefox:~/.mozilla/firefox --continue --embed-metadata --ignore-errors --no-force-overwrites --no-playlist --verbose" # Process command-line options for download type while getopts "mvr" opt; do @@ -87,7 +87,7 @@ case $URL in ;; esac -SIMULATION_CMD="yt-dlp --simulate --print filename $URL" +SIMULATION_CMD="yt-dlp --simulate --print %(filename)s $URL" YTDL_CMD="$YTDL_CMD_BASE --output \"$YTDL_OUTPUT_FORMAT\" \"$URL\"" # Notify and perform simulation to get filename (feedback to user) -- cgit v1.2.3