update fortune files. dw, not abandoned, just me being busy lol

This commit is contained in:
2026-07-09 14:05:52 -04:00
parent 064fe096ae
commit 5077158e7b
7 changed files with 10030 additions and 413 deletions
+1 -1
View File
@@ -1 +1 @@
{"lastDate": "2026-06-03T00:00:00Z"} {"lastDate": "2026-07-09T00:00:00Z"}
+1 -1
View File
@@ -1 +1 @@
{"lastDate": "2026-06-03T00:00:00Z"} {"lastDate": "2026-07-09T00:00:00Z"}
+1 -1
View File
@@ -1 +1 @@
{"lastDate": "2026-06-03T00:00:00Z"} {"lastDate": "2026-07-09T00:00:00Z"}
+1 -1
View File
@@ -29,7 +29,7 @@ echo "Result: $AFTERDATE"
# setting the latest date. just pulling the latest song from the api and setting the createDate as the latest date in var.json for use when we update the fortune file again, dont want to add the same songs twice. idk how I'll handle broken links and such, maybe just regenerate the whole thing periodically. # setting the latest date. just pulling the latest song from the api and setting the createDate as the latest date in var.json for use when we update the fortune file again, dont want to add the same songs twice. idk how I'll handle broken links and such, maybe just regenerate the whole thing periodically.
CURLURL="https://vocadb.net/api/songs?songTypes=Original&afterDate=${AFTERDATE}&&artistId%5B%5D=${ARTIST}&childVoicebanks=${CHILDREN}&onlyWithPvs=true&status=Finished&start=0&maxResults=1&sort=PublishDate&fields=PVs" CURLURL="https://vocadb.net/api/songs?songTypes=Original&afterDate=${AFTERDATE}&&artistId%5B%5D=${ARTIST}&childVoicebanks=${CHILDREN}&onlyWithPvs=true&status=Finished&start=0&maxResults=1&sort=PublishDate&fields=PVs"
echo "CURLURL: $CURLURL" echo "CURLURL: $CURLURL"
DATA=$(curl -X 'GET' $CURLURL -H 'accept: application/json') DATA=$(curl -X 'GET' "$CURLURL" -H 'accept: application/json')
# making sure there are songs to add. # making sure there are songs to add.
SONGS=$(echo "$DATA" | jq -c '.items | length') SONGS=$(echo "$DATA" | jq -c '.items | length')
if [ "$SONGS" -eq 0 ]; then echo "Result is empty. No more songs."; exit 0; fi if [ "$SONGS" -eq 0 ]; then echo "Result is empty. No more songs."; exit 0; fi
+5178 -212
View File
File diff suppressed because it is too large Load Diff
+3697 -148
View File
File diff suppressed because it is too large Load Diff
+1151 -49
View File
File diff suppressed because it is too large Load Diff