diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2023-08-01 23:03:56 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2023-08-01 23:03:56 +0200 |
commit | ff111234882691d1678ffb3b8d4d2c95ed65e84f (patch) | |
tree | e58f7a6f7936e81ab51a42e0296ea96abfa77899 | |
parent | 0e3e67166e9e76741161dd39fb7d1085493671d7 (diff) | |
download | scripts-ff111234882691d1678ffb3b8d4d2c95ed65e84f.tar.gz scripts-ff111234882691d1678ffb3b8d4d2c95ed65e84f.zip |
Changed to yt-dlp in showURLimage.sh.
-rwxr-xr-x | showURLimage.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |