diff options
-rwxr-xr-x | 1337x | 2 | ||||
-rwxr-xr-x | yts | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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" ] && @@ -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" |