diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-08 21:43:00 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-08 21:43:00 +0900 |
| commit | 4ed10d5f6aeb08a9fb02543d82ceaec87adfb84d (patch) | |
| tree | 260236f1d25c1f70793541fbff64961102f0cb5c /ar/.local/bin/mpvplay | |
| parent | 33f9912e7ff7b25a4ca360878bbb4ace3aac8fc6 (diff) | |
modified bin/mpvplay
Diffstat (limited to 'ar/.local/bin/mpvplay')
| -rwxr-xr-x | ar/.local/bin/mpvplay | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ar/.local/bin/mpvplay b/ar/.local/bin/mpvplay index ba564f2..61c613e 100755 --- a/ar/.local/bin/mpvplay +++ b/ar/.local/bin/mpvplay @@ -12,7 +12,7 @@ loginurl() { username="$(echo | dmenu -i -p "Enter a username:")" [ -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 + if ! mpv --ytdl-format='bestvideo[height<=1080]+bestaudio/best[height<=1080]' --ytdl-raw-options=username="$username",password="$password" "$url"; then notify-send "❌ Failed to play $url" "❗ Check your username or password" exit 1 fi @@ -24,7 +24,7 @@ play_url() { [ -n "$url" ] && echo "$url" | grep -E '^https?://' >/dev/null || return 1 if yt-dlp --simulate --dump-json "$url" >/dev/null 2>&1; then notify-send "📽️ Playing video from URL:" "$url" - mpv "$url" + mpv --ytdl-format='bestvideo[height<=1080]+bestaudio/best[height<=1080]' "$url" else loginurl fi |
