From 442ec1448c3dfccc5510da063dc5f320cb9ae16e Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 4 Mar 2023 12:44:56 +0530 Subject: 1337x, yts: more pretty dmenu prompt --- 1337x | 2 +- yts | 2 +- 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" -- cgit v1.2.3