Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueru-sama authored Nov 8, 2024
1 parent 9e361b7 commit 7328a17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mpv-AppImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export XDG_DATA_DIRS="$CURRENTDIR/usr/share:$XDG_DATA_DIRS"
# Download yt-dlp if needed
if echo "$@" | grep -q "http" && ! command -v yt-dlp >/dev/null 2>&1; then
echo "Video link detected but yt-dlp is not installed, installing..."
mkdir -p $CACHEDIR"/mpv-appimage_yt-dlp
mkdir -p "$CACHEDIR"/mpv-appimage_yt-dlp
YT="$(curl -Ls https://api.github.com/repos/yt-dlp/yt-dlp/releases \
| sed 's/[()",{} ]/\n/g' | grep -oi 'https.*yt.*linux$' | head -1)
| sed 's/[()",{} ]/\n/g' | grep -oi 'https.*yt.*linux$' | head -1)"
if command -v wget >/dev/null 2>&1; then
wget -q "$YT" -O "$CACHEDIR"/mpv-appimage_yt-dlp/yt-dlp
elif command -v curl >/dev/null 2>&1; then
Expand Down

0 comments on commit 7328a17

Please sign in to comment.