Skip to content

Commit

Permalink
Fixes escaped quotes in search
Browse files Browse the repository at this point in the history
in pystardust#1391 I used 71zenith's recommendation for fixing quotes escaped.
Tested and working with Oshi No Ko's Second season.
likely because it's hard to be consistent with the way 「押しの子」is shown in
English.
  • Loading branch information
HirschBerge committed Oct 6, 2024
1 parent d42facd commit 8f1042b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ani-cli
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ search_anime() {
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 "$allanime_refr" -s -G "${allanime_api}/api" --data-urlencode "variables={\"search\":{\"allowAdult\":false,\"allowUnknown\":false,\"query\":\"$1\"},\"limit\":40,\"page\":1,\"translationType\":\"$mode\",\"countryOrigin\":\"ALL\"}" --data-urlencode "query=$search_gql" -A "$agent" | sed 's|Show|\
|g' | sed -nE "s|.*_id\":\"([^\"]*)\",\"name\":\"([^\"]*)\".*${mode}\":([1-9][^,]*).*|\1 \2 (\3 episodes)|p"
| g' | sed -nE "s|.*_id\":\"([^\"]*)\",\"name\":\"(.+)\",.*${mode}\":([1-9][^,]*).*|\1\t\2 (\3 episodes)|p" | sed 's/\\"//g'
}

time_until_next_ep() {
Expand Down

0 comments on commit 8f1042b

Please sign in to comment.