small update

This commit is contained in:
2026-04-23 20:45:06 -04:00
parent d6d8b9b091
commit 6570ba6bda
4 changed files with 22 additions and 6 deletions

View File

@@ -16,15 +16,15 @@ CURLURL="https://vocadb.net/api/songs?songTypes=Original&afterDate=${AFTERDATE}&
echo "CURLURL: $CURLURL"
DATA=$(curl -X 'GET' \
$CURLURL \
-H 'accept: application/json')
DATE=$(echo "$DATA" | jq -r '.items[0].publishDate')
echo "DATE: $DATE"
-H 'accept: application/json' | tr -d '\000-\037')
# making sure there are songs to add.
SONGS=$(echo "$DATA" | jq '.items | length')
SONGS=$(echo "$DATA" | jq -r '.items | length')
if [ "$SONGS" -eq 0 ]; then
echo "Result is empty. No more songs."
exit 0
fi
DATE=$(echo "$DATA" | jq -r '.items[0].publishDate')
echo "DATE: $DATE"
echo "{\"lastDate\": \"$DATE\"}" > var.json
# looping the api to get all songs we need.
while true; do
@@ -32,7 +32,7 @@ while true; do
DATA=$(curl -X 'GET' \
$CURLURL \
-H 'accept: application/json')
SONGS=$(echo "$DATA" | jq '.items | length')
SONGS=$(echo "$DATA" | jq -r '.items | length')
if [ "$SONGS" -eq 0 ]; then
echo "Result is empty. No more songs."
break

View File

@@ -221270,3 +221270,19 @@ http://www.nicovideo.jp/watch/nm3522506
▼・ᴗ・▼
%
TETO SONG OF THE DAY!
Kikoe feat. 重音テト -- Sloth
http://www.nicovideo.jp/watch/sm46218538
▼・ᴗ・▼
%
TETO SONG OF THE DAY!
mlmtrみりめーとる feat. 重音テト -- 20周年
http://www.nicovideo.jp/watch/sm46218113
▼・ᴗ・▼
%

Binary file not shown.

View File

@@ -1 +1 @@
{"lastDate": "2026-04-23T00:00:00Z"}
{"lastDate": "2026-04-24T00:00:00Z"}