diff options
author | sinanmohd <sinan@firemail.cc> | 2023-05-08 17:17:24 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-05-08 17:17:24 +0530 |
commit | 40bf0a7aa7951a3ceb9dcb2d126f1bc5307a50eb (patch) | |
tree | 6757096136a1ca808b6e22129ef288baf433cf32 /yts | |
parent | 8c660d73525ef68a007256d93e3102b22baacefa (diff) |
yts: use strcasecmp and proper menu line limits
Diffstat (limited to 'yts')
-rwxr-xr-x | yts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |