aboutsummaryrefslogtreecommitdiff
path: root/1337x
diff options
context:
space:
mode:
Diffstat (limited to '1337x')
-rwxr-xr-x1337x6
1 files changed, 5 insertions, 1 deletions
diff --git a/1337x b/1337x
index 755f4b3..c8916c0 100755
--- a/1337x
+++ b/1337x
@@ -1,6 +1,7 @@
#!/bin/sh
url_1337x="https://1337x.to"
+proxy_1337x="https://1337x.torrentbay.to"
die()
{
@@ -57,7 +58,7 @@ main()
out=
query=
- dep_check "dmenu" "pirowatch"
+ dep_check "dmenu" "pirowatch" "curl"
if [ "$#" -gt 0 ] && [ "$1" = "-o" ]
then
@@ -65,6 +66,9 @@ main()
shift
fi
+ curl -Is "$url_1337x" > /dev/null ||
+ url_1337x="$proxy_1337x"
+
query="$*"
: "${query:=$(printf "" | dmenu -p " ")}"
[ -z "$query" ] &&