diff options
author | sinanmohd <pcmsinan@gmail.com> | 2023-03-04 12:44:56 +0530 |
---|---|---|
committer | sinanmohd <pcmsinan@gmail.com> | 2023-03-11 19:05:05 +0530 |
commit | 442ec1448c3dfccc5510da063dc5f320cb9ae16e (patch) | |
tree | 34cc6a8f87f4f1c272381a1b6b9088006be851b5 | |
parent | 3095c10db9436b872fa80b5064633f5e6140360a (diff) |
1337x, yts: more pretty dmenu prompt
-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" |