diff --git a/.local/bin/stream b/.local/bin/stream index 748cf23..022287c 100755 --- a/.local/bin/stream +++ b/.local/bin/stream @@ -1,2 +1,4 @@ #!/bin/bash -nohup streamlink -p mpv $1 best > /dev/null 2>&1 & +KERNEL=$(uname -sr) +[[ $KERNEL =~ "Microsoft" ]] && nohup streamlink -p "/mnt/c/Program\ Files/VideoLAN/VLC/vlc.exe" $1 best > /dev/null 2>&1 & +[[ $KERNEL =~ "gentoo" ]] && nohup streamlink -p mpv $1 best > /dev/null 2>&1 &