aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-05-08 17:17:24 +0530
committersinanmohd <sinan@firemail.cc>2023-05-08 17:17:24 +0530
commit40bf0a7aa7951a3ceb9dcb2d126f1bc5307a50eb (patch)
tree6757096136a1ca808b6e22129ef288baf433cf32
parent8c660d73525ef68a007256d93e3102b22baacefa (diff)
yts: use strcasecmp and proper menu line limits
-rwxr-xr-xyts4
1 files changed, 2 insertions, 2 deletions
diff --git a/yts b/yts
index 88377ad..8df1542 100755
--- a/yts
+++ b/yts
@@ -49,7 +49,7 @@ id_yts()
select=
fetch="$(get_yts "movies/$1" | grep -Eo "value=\"[A-Z0-9]{40}\">[a-zA-Z0-9 ]*")"
- select="$(echo "$fetch" | cut -d'>' -f2 | "$menu" -l 25 -p " ")"
+ select="$(echo "$fetch" | cut -d'>' -f2 | "$menu" -il 4 -p " ")"
[ -n "$select" ] &&
echo "$fetch" | grep "$select" | cut -d'"' -f2
@@ -79,7 +79,7 @@ main()
fetch="$(search_yts "$query")"
- id="$(id_yts "$(echo "$fetch" | tr '-' ' ' | "$menu" -l 25 -p "󰎁 " | tr ' ' '-')")"
+ id="$(id_yts "$(echo "$fetch" | tr '-' ' ' | "$menu" -il 20 -p "󰎁 " | tr ' ' '-')")"
[ -z "$id" ] &&
exit 1