aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2023-08-01 23:03:56 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2023-08-01 23:03:56 +0200
commitff111234882691d1678ffb3b8d4d2c95ed65e84f (patch)
treee58f7a6f7936e81ab51a42e0296ea96abfa77899
parent0e3e67166e9e76741161dd39fb7d1085493671d7 (diff)
downloadscripts-ff111234882691d1678ffb3b8d4d2c95ed65e84f.tar.gz
scripts-ff111234882691d1678ffb3b8d4d2c95ed65e84f.zip
Changed to yt-dlp in showURLimage.sh.
-rwxr-xr-xshowURLimage.sh4
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