Remove manga check script
This commit is contained in:
parent
1df8a4cba4
commit
b15041a757
1 changed files with 0 additions and 27 deletions
|
@ -1,27 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
BASE="https://fanfox.net/manga"
|
|
||||||
declare -a TO_CHECK=(
|
|
||||||
"the_guy_she_was_interested_in_wasn_t_a_guy_at_all|The Guy She Was Interested In Wasn't A Guy At All"
|
|
||||||
)
|
|
||||||
|
|
||||||
for MANGA in "${TO_CHECK[@]}"
|
|
||||||
do
|
|
||||||
URL=$(echo $MANGA | cut -d "|" -f1)
|
|
||||||
PRETTY_NAME=$(echo $MANGA | cut -d "|" -f2)
|
|
||||||
|
|
||||||
LAST_CHAPTER=$(cat "/tmp/$URL.txt");
|
|
||||||
LATEST_CHAPTER=$(curl "$BASE/$URL/" \
|
|
||||||
--cookie "isAdult=1" \
|
|
||||||
| perl -ne 'm|detail-main-list">(.\|\n)*?title3">(.*?)<\/p>| && print "$2"'
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ ! -f "/tmp/$MANGA.txt" ] && [[ "$LATEST_CHAPTER" != "$LAST_CHAPTER" ]]; then
|
|
||||||
/Users/noahheague/.config/scripts/util/webhook.sh \
|
|
||||||
-c "manga" \
|
|
||||||
-m "New chapter of $PRETTY_NAME ($LATEST_CHAPTER)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $LATEST_CHAPTER > "/tmp/$URL.txt";
|
|
||||||
done
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue