Closed wiimachine closed 1 year ago
most likely a firewall problem
i have now allowed incoming connections for ani-cli. still no luck.
sh -x $(which ani-cli) naruto -S 1 -e 1 2>&1 | tee ani-cli.log
send log
+ agent='Mozilla/5.0 (Windows NT 6.1; Win64; rv:109.0) Gecko/20100101 Firefox/109.0'
+ allanime_base=https://allanime.to
+ allanime_api=https://api.allanime.day
+ mode=sub
+ download_dir=.
+ quality=best
+ case "$(uname -a)" in
++ uname -a
+ player_function=iina
+ use_external_menu=0
+ '[' -t 0 ']'
+ '[' 0 = 0 ']'
+ multi_selection_flag=-m
+ '[' 0 = 1 ']'
+ hist_dir=/Users/leon/.local/state/ani-cli
+ '[' '!' -d /Users/leon/.local/state/ani-cli ']'
+ histfile=/Users/leon/.local/state/ani-cli/ani-hsts
+ '[' '!' -f /Users/leon/.local/state/ani-cli/ani-hsts ']'
+ search=scrape
+ '[' 5 -gt 0 ']'
+ case "$1" in
++ printf %s ' naruto'
++ sed 's|^ ||;s| |+|g'
+ query=naruto
+ shift
+ '[' 4 -gt 0 ']'
+ case "$1" in
+ '[' 4 -lt 2 ']'
+ index=1
+ shift
+ shift
+ '[' 2 -gt 0 ']'
+ case "$1" in
+ '[' 2 -lt 2 ']'
+ ep_no=1
+ '[' -n 1 ']'
+ ANI_CLI_NON_INTERACTIVE=1
+ shift
+ shift
+ '[' 0 -gt 0 ']'
+ printf '\33[2K\r\033[1;34mChecking dependencies...\033\n[0m'
Checking dependencies...
+ dep_ch curl sed grep
+ for dep in '"$@"'
+ command -v curl
+ for dep in '"$@"'
+ command -v sed
+ for dep in '"$@"'
+ command -v grep
+ '[' -z 1 ']'
+ case "$player_function" in
+ dep_ch iina
+ for dep in '"$@"'
+ command -v iina
+ case "$search" in
+ '[' 0 = 0 ']'
+ '[' -z naruto ']'
++ printf %s naruto
++ sed 's| |+|g'
+ query=naruto
++ search_anime naruto
++ search_gql='query( $search: SearchInput $limit: Int $page: Int $translationType: VaildTranslationTypeEnumType $countryOrigin: VaildCountryOriginEnumType ) { shows( search: $search limit: $limit page: $page translationType: $translationType countryOrigin: $countryOrigin ) { edges { _id name availableEpisodes __typename } }}'
++ curl -e https://allanime.to -s --cipher AES256-SHA256 -G https://api.allanime.day/api --data-urlencode 'variables={"search":{"allowAdult":false,"allowUnknown":false,"query":"naruto"},"limit":40,"page":1,"translationType":"sub","countryOrigin":"ALL"}' --data-urlencode 'query=query( $search: SearchInput $limit: Int $page: Int $translationType: VaildTranslationTypeEnumType $countryOrigin: VaildCountryOriginEnumType ) { shows( search: $search limit: $limit page: $page translationType: $translationType countryOrigin: $countryOrigin ) { edges { _id name availableEpisodes __typename } }}' -A 'Mozilla/5.0 (Windows NT 6.1; Win64; rv:109.0) Gecko/20100101 Firefox/109.0'
++ sed 's|Show|\n|g'
++ sed -nE 's|.*_id":"([^"]*)","name":"([^"]*)".*sub":([1-9][^,]*).*|\1\t\2 (\3 episodes)|p'
+ anime_list=
+ '[' -z '' ']'
+ die 'No results found!'
+ printf '\33[2K\r\033[1;31m%s\033[0m\n' 'No results found!'
No results found!
+ exit 1
I'm having the same issue on Ubuntu 22.04 with ani-cli 4.0.4-1.
The issue seems to be a formatting error with the search. I pulled the curl command from the logs.
curl -e https://allanime.to+ sed -s --cipher AES256-SHA256 -G https://api.allanime.to/allanimeapi --data-urlencode variables={"search":{"allowAdult":false,"allowUnknown":false,"query":"naruto"},"limit":40,"page":1,"translationType":"sub","countryOrigin":"ALL"} --data-urlencode query=query( $search: SearchInput $limit: Int $page: Int $translationType: VaildTranslationTypeEnumType $countryOrigin: VaildCountryOriginEnumType ) { shows( search: $search limit: $limit page: $page translationType: $translationType countryOrigin: $countryOrigin ) { edges { _id name availableEpisodes __typename } }} -A Mozilla/5.0 (Windows NT 6.1; Win64; rv:109.0) Gecko/20100101 Firefox/109.0
-bash: syntax error near unexpected token `('
Well 4.0.4 is not going to work at all, the website has changed since. Please upgrade to the latest version.
Looks like my repo for ani-cli was messed up. Please ignore...
Working on different Mac running macOS version 14.0.
Metadata Version: 4.6.1 OS: macOS 11.7.9 Shell: zsh Anime: all
Description Searching for anime always results in 'No results found!' being displayed near-instantaneously, regardless of search term.
Steps to reproduce
ani-cli deltora quest
or./ani-cli deltora quest
Expected behavior A list of results or at least an indication that the script has actually tried to search.
Additional context First encountered when using ani-cli with HomeBrew. Tried running the script straight from a git clone with the same results. Could this be related to firewall or macOS version? Last time I used ani-cli, it worked fine. That was a few months ago, however.