aboutsummaryrefslogtreecommitdiff
path: root/yts
diff options
context:
space:
mode:
authorsinanmohd <pcmsinan@gmail.com>2023-03-05 09:15:03 +0530
committersinanmohd <pcmsinan@gmail.com>2023-03-11 19:05:05 +0530
commita63bb259b71f3470093cf19d46aa8b7cf17cfd0d (patch)
tree48749644704107db61d0db0557a119927307952e /yts
parentdfc634370d922db7ec6f8ab2c3f40ed0e1038327 (diff)
1337x, yts: more appropriate dependency check
Diffstat (limited to 'yts')
-rwxr-xr-xyts4
1 files changed, 2 insertions, 2 deletions
diff --git a/yts b/yts
index 5d6bed7..60f38c3 100755
--- a/yts
+++ b/yts
@@ -48,7 +48,6 @@ dllink_yts()
fetch=
select=
id=
- dep_check "dmenu"
fetch="$(get_yts "movies/$1" | grep -Eo "value=\"[A-Z0-9]{40}\">[a-zA-Z0-9 ]*")"
select="$(echo "$fetch" | cut -d'>' -f2 | dmenu -l 25 -p " ")"
@@ -69,7 +68,7 @@ main()
out=
query=
- dep_check "dmenu" "pirowatch" "curl"
+ dep_check "dmenu"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
@@ -94,6 +93,7 @@ main()
then
echo "$dllink"
else
+ dep_check "pirowatch"
pirowatch -s "$dllink"
fi
}