Insensitive case.

This commit is contained in:
CronyAkatsuki 2023-01-09 21:55:15 +01:00
parent ac55c35a32
commit f5c98b094c

View File

@ -7,13 +7,13 @@ baseurl="https://www.1377x.to/"
cachedir="$HOME/.cache/dl"
#get query from dmenu
query=$(printf '%s' | dmenu -p "Search Torrent:" | sed 's/ /+/g')
query=$(printf '%s' | dmenu -i -p "Search Torrent:" | sed 's/ /+/g')
#setup working dir
mkdir -p $cachedir
cd $cachedir
case "$(printf "All\\nMovies\\nTV\\nGames\\nMusic\\nApplications\\nDocumentaries\\nOther" | dmenu -p "Category to search in: ")" in
case "$(printf "All\\nMovies\\nTV\\nGames\\nMusic\\nApplications\\nDocumentaries\\nOther" | dmenu -i -p "Category to search in: ")" in
All) url="$baseurl/search/$query" ;;
Movies) url="$baseurl/category-search/$query/Movies" ;;
TV) url="$baseurl/category-search/$query/TV" ;;