aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x1337x5
-rwxr-xr-xyts4
2 files changed, 5 insertions, 4 deletions
diff --git a/1337x b/1337x
index 925a02b..772c48d 100755
--- a/1337x
+++ b/1337x
@@ -29,7 +29,7 @@ dep_check()
get_1337x()
{
: "${1:?}"
- dep_check curl
+ dep_check "curl"
curl --silent -H 'Accept-Encoding: gzip,deflate, br' --compressed "${url_1337x}/$1"
}
@@ -58,7 +58,7 @@ main()
out=
query=
- dep_check "dmenu" "pirowatch" "curl"
+ dep_check "dmenu"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
@@ -84,6 +84,7 @@ main()
then
echo "$magnet"
else
+ dep_check "pirowatch"
pirowatch "$magnet"
fi
}
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
}