diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-24 01:30:42 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-24 01:30:42 +0900 |
| commit | 984fd3d673f83f689e6a57c2304a4dfd36346fbb (patch) | |
| tree | 518b3ce8d5fc984192dfc2c0d37baf4e3a2ed473 | |
| parent | be815d98665bf74ba4d3df08a2adca75635da31f (diff) | |
modified bin/mpvplay
| -rwxr-xr-x | ar/.local/bin/mpvplay | 2 |
1 files changed, 1 insertions, 1 deletions
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" |
