Skip to content

Commit

Permalink
fix: avoids reencoding the + while running time_until_next_ep (#1445)
Browse files Browse the repository at this point in the history
Co-authored-by: port19 <[email protected]>
  • Loading branch information
HirschBerge and port19x authored Nov 18, 2024
1 parent 0c0bf5b commit 1b9e9bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ani-cli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

version_number="4.9.5"
version_number="4.9.6"

# UI

Expand Down Expand Up @@ -218,7 +218,7 @@ search_anime() {

time_until_next_ep() {
animeschedule="https://animeschedule.net"
curl -s -G "$animeschedule/api/v3/anime" --data-urlencode "q=$1" | sed 's|"id"|\n|g' | sed -nE 's|.*,"route":"([^"]*)","premier.*|\1|p' | while read -r anime; do
curl -s -G "$animeschedule/api/v3/anime" --data "q=$1" | sed 's|"id"|\n|g' | sed -nE 's|.*,"route":"([^"]*)","premier.*|\1|p' | while read -r anime; do
data=$(curl -s "$animeschedule/anime/$anime" | sed '1,/"anime-header-list-buttons-wrapper"/d' | sed -nE 's|.*countdown-time-raw" datetime="([^"]*)">.*|Next Raw Release: \1|p;s|.*countdown-time" datetime="([^"]*)">.*|Next Sub Release: \1|p;s|.*english-title">([^<]*)<.*|English Title: \1|p;s|.*main-title".*>([^<]*)<.*|Japanese Title: \1|p')
status="Ongoing"
color="33"
Expand Down

0 comments on commit 1b9e9bb

Please sign in to comment.