aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x1337x2
-rwxr-xr-xyts2
2 files changed, 2 insertions, 2 deletions
diff --git a/1337x b/1337x
index ea9a7fa..925a02b 100755
--- a/1337x
+++ b/1337x
@@ -74,7 +74,7 @@ main()
die "please enter a query"
fetch="$(search_1337x "$query")"
- select="$(echo "$fetch" | sed 's/^.*\///g' | dmenu -l 25 -p " ")"
+ select="$(echo "$fetch" | sed -e's/^.*\///g' | tr '-' ' ' | dmenu -l 25 -p " " | tr ' ' '-')"
magnet="$(magnet_1337x "$(echo "$fetch" | grep "$select")")"
[ -z "$magnet" ] &&
diff --git a/yts b/yts
index 0720885..5d6bed7 100755
--- a/yts
+++ b/yts
@@ -85,7 +85,7 @@ main()
url_yts="$proxy_yts"
fetch="$(search_yts "$query")"
- dllink="$(dllink_yts "$(echo "$fetch" | dmenu -l 25 -p " ")")"
+ dllink="$(dllink_yts "$(echo "$fetch" | tr '-' ' ' | dmenu -l 25 -p " " | tr ' ' '-')")"
[ -z "$dllink" ] &&
die "empty magnet"