From ff111234882691d1678ffb3b8d4d2c95ed65e84f Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 1 Aug 2023 23:03:56 +0200 Subject: Changed to yt-dlp in showURLimage.sh. --- showURLimage.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'showURLimage.sh') diff --git a/showURLimage.sh b/showURLimage.sh index ebf8aff..861e8f7 100755 --- a/showURLimage.sh +++ b/showURLimage.sh @@ -10,8 +10,8 @@ url="$1" [ -d "$folder" ] || mkdir -p "$folder" -if echo "$url" | grep -i "youtube" >/dev/null; then - youtube-dl --skip-download --write-thumbnail --no-playlist -o "$filename" "$url" +if echo "$url" | grep -iq "youtube"; then + yt-dlp --skip-download --write-thumbnail --no-playlist -o "$filename" "$url" convert "${filename}*" "${filename}.jpg" filename="${filename}.jpg" else -- cgit v1.2.1