aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-01-26 23:49:48 +0300
committerawy <awy@awy.one>2025-01-26 23:49:48 +0300
commit36fe0571994c1cc94e256f0f3608fcf0b7bf2d3b (patch)
tree8e7e685453d7c98d26932df8ab37c3372abdd1b0 /.local/bin
parent173eef544446411f63026f7daa45ac7f5dfe632a (diff)
update
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/linkhandler2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
index c57ce8b..17adc30 100755
--- a/.local/bin/linkhandler
+++ b/.local/bin/linkhandler
@@ -13,7 +13,7 @@ else
fi
case "$url" in
- *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
+ *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*youtube.com/v/*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*)
setsid -f mpv -quiet "$url" >/dev/null 2>&1 ;;
*png|*jpg|*jpe|*jpeg|*gif|*webp)
curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && imv "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;;