summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-07 18:27:18 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-12-07 18:27:18 +0900
commitb1b66ce853e96ffce0bc1be15c99ad49a8c0b920 (patch)
tree7065539ed80ba0eac576252f60352fdb6f118459
parentacec9271efe0b8ff0f354a7b5ffbb5c5e079ac9a (diff)
modified bin/qndl
-rwxr-xr-xar/.local/bin/qndl8
1 files changed, 4 insertions, 4 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl
index 7054541..46b4aa8 100755
--- a/ar/.local/bin/qndl
+++ b/ar/.local/bin/qndl
@@ -9,9 +9,7 @@ case "$BROWSER" in
# *qutebrowser*) cookies="chromium:~/.local/share/qutebrowser" ;;
esac
-if [ -n "$cookies" ]; then
- ytdl_cmd_base="$ytdl_cmd_base --cookies-from-browser \"$cookies\""
-fi
+[ -n "$cookies" ] && ytdl_cmd_base="$ytdl_cmd_base --cookies-from-browser \"$cookies\""
shift $((OPTIND - 1))
@@ -106,7 +104,9 @@ case $url in
;;
esac
-simulation_cmd="$simulation_cmd --cookies-from-browser $cookies $url"
+[ -n "$cookies" ] && simulation_cmd="$simulation_cmd --cookies-from-browser $cookies $url" ||
+ simulation_cmd="$simulation_cmd $url"
+
ytdl_cmd="$ytdl_cmd_base --output \"$ytdl_output_format\" \"$url\""
# Notify and perform simulation to get filename (feedback to user)