mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
Compare commits
No commits in common. "d5393598d58d51c257b8885e9840608a608076d3" and "9124ffa1b7680995381d47bba24fcb984ea42e2a" have entirely different histories.
d5393598d5
...
9124ffa1b7
3
ani-cli
3
ani-cli
@ -423,9 +423,10 @@ get_search_query() {
|
|||||||
ORDER BY search_date DESC;"
|
ORDER BY search_date DESC;"
|
||||||
|
|
||||||
msg="Choose from list of searched anime below, or enter a unique name of an anime to search for"
|
msg="Choose from list of searched anime below, or enter a unique name of an anime to search for"
|
||||||
|
span="$(generate_span "$msg")"
|
||||||
if [ "$is_rofi" -eq 1 ]; then
|
if [ "$is_rofi" -eq 1 ]; then
|
||||||
query=$(rofi -dpi "$DPI" -dmenu -l 15 -p "Search Anime:" \
|
query=$(rofi -dpi "$DPI" -dmenu -l 15 -p "Search Anime:" \
|
||||||
-mesg "$(generate_span "$msg")" \
|
-mesg "$span" \
|
||||||
-config "$ROFI_CFG" < <(run_stmt "$stmt"))
|
-config "$ROFI_CFG" < <(run_stmt "$stmt"))
|
||||||
# Remove the id from the query
|
# Remove the id from the query
|
||||||
query="${query//[1-9]*\. /}"
|
query="${query//[1-9]*\. /}"
|
||||||
|
@ -242,11 +242,8 @@ main() {
|
|||||||
# download
|
# download
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
lg "Download anime"
|
lg "Download anime"
|
||||||
dl_dir=$(
|
dl_dir=$(rofi -dpi "$DPI" -dmenu -config "$CFG_FILE" \
|
||||||
rofi -dpi "$DPI" -dmenu -config "$CFG_FILE" \
|
-l 1 -p "Enter download dir:")
|
||||||
-mesg "$(generate_span "Enter the path to the download directory, or leave blank to go with the default: $HOME/Videos/sauce/")" \
|
|
||||||
-l 1 -p "Enter download dir:"
|
|
||||||
)
|
|
||||||
# if dl_dir is none set to current directory
|
# if dl_dir is none set to current directory
|
||||||
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT_DOWNLOAD"
|
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT_DOWNLOAD"
|
||||||
run -d "$dl_dir"
|
run -d "$dl_dir"
|
||||||
|
Loading…
Reference in New Issue
Block a user