diff --git a/dot_local/bin/executable_xdg-https-handler b/dot_local/bin/executable_xdg-https-handler index f28534d..a86d9ec 100644 --- a/dot_local/bin/executable_xdg-https-handler +++ b/dot_local/bin/executable_xdg-https-handler @@ -1,10 +1,8 @@ #!/bin/bash BROWSER=firefox.desktop -if [[ "$1" =~ ^https?://(www\.)?(youtube\.com/watch|youtu\.be)/ ]]; then - mpv "$1" -elif [[ "$1" =~ ^https?://(www\.)?(youtube\.com/shorts|youtu\.be)/ ]]; then - mpv "$1" +if [[ "$1" =~ ^https?://(www\.)?(youtube\.com/(watch|shorts)|youtu\.be/) ]]; then + mpv --no-resume-playback "$1" else gtk-launch "$BROWSER" "$1" fi