mirror of
https://github.com/ksyasuda/aniwrapper.git
synced 2024-11-22 03:19:53 -08:00
update gogoanime link to fix query
This commit is contained in:
parent
cc9f7e7a44
commit
3b762fc4e4
14
ani-cli
14
ani-cli
@ -7,7 +7,7 @@ fi
|
||||
|
||||
VERBOSE=0
|
||||
|
||||
BASE_URL="https://gogoanime.cm"
|
||||
BASE_URL="https://www1.gogoanime.cm/"
|
||||
CFG_DIR="$XDG_CONFIG_HOME/aniwrapper"
|
||||
ROFI_CFG="meh.rasi"
|
||||
|
||||
@ -546,7 +546,7 @@ shift $((OPTIND - 1))
|
||||
########
|
||||
|
||||
case $scrape in
|
||||
query)
|
||||
query)
|
||||
get_search_query "$*"
|
||||
search_results=$(search_anime "$query")
|
||||
[ -z "$search_results" ] && die "No search results found"
|
||||
@ -555,7 +555,7 @@ case $scrape in
|
||||
fi
|
||||
episode_selection
|
||||
;;
|
||||
history)
|
||||
history)
|
||||
stmt="SELECT DISTINCT anime_name FROM watch_history ORDER BY watch_date DESC"
|
||||
search_results=$(printf "%s\n" "$stmt" | sqlite3 -noheader "$HISTORY_DB")
|
||||
[ -z "$search_results" ] && die "History is empty"
|
||||
@ -572,8 +572,8 @@ case $scrape in
|
||||
ep_choice_start=$(run_stmt "$stmt")
|
||||
log "Most recently watched episode: $ep_choice_start"
|
||||
;;
|
||||
playlist)
|
||||
lines=$(wc -l < "$playlist_file" )
|
||||
playlist)
|
||||
lines=$(wc -l <"$playlist_file")
|
||||
log "Num lines in playlist: " "$lines"
|
||||
if [[ "$lines" -eq 0 ]]; then
|
||||
get_search_query "$*"
|
||||
@ -599,7 +599,7 @@ case $scrape in
|
||||
[ "$VERBOSE" -eq 1 ] && printf "Episodes: %s\n" "${episodes[@]}"
|
||||
fi
|
||||
;;
|
||||
add)
|
||||
add)
|
||||
get_search_query "$*"
|
||||
search_results=$(search_anime "$query")
|
||||
[ -z "$search_results" ] && die "No search results found"
|
||||
@ -607,7 +607,7 @@ case $scrape in
|
||||
[ $? -ne 0 ] && die "No anime selection found"
|
||||
episode_selection
|
||||
;;
|
||||
sync)
|
||||
sync)
|
||||
printf "%s" "Enter username for remote user: "
|
||||
read -r username
|
||||
printf "%s" "Enter host for remote user: "
|
||||
|
Loading…
Reference in New Issue
Block a user