From 984fd3d673f83f689e6a57c2304a4dfd36346fbb Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 24 Mar 2025 01:30:42 +0900 Subject: modified bin/mpvplay --- ar/.local/bin/mpvplay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ar/.local/bin/mpvplay b/ar/.local/bin/mpvplay index 7ad0620..ba564f2 100755 --- a/ar/.local/bin/mpvplay +++ b/ar/.local/bin/mpvplay @@ -10,7 +10,7 @@ check_unmount() { findmnt "$HOME/Private" >/dev/null && $MOUNT_SCRIPT; } loginurl() { notify-send "🔑 Authentication required" username="$(echo | dmenu -i -p "Enter a username:")" - password="$(echo | dmenu -i -P -p "Enter a password:")" + [ -n "$username" ] && password="$(echo | dmenu -i -P -p "Enter a password:")" || exit if [ -n "$username" ] && [ -n "$password" ]; then if ! mpv --ytdl-raw-options=username="$username",password="$password" "$url"; then notify-send "❌ Failed to play $url" "❗ Check your username or password" -- cgit v1.2.3