aboutsummaryrefslogtreecommitdiff
path: root/showURLimage.sh
diff options
context:
space:
mode:
Diffstat (limited to '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