api: add support for newgrounds

closes #620, replaces #1368
Co-authored-by: hyperdefined <contact@hyper.lol>
This commit is contained in:
wukko
2025-07-10 00:49:33 +06:00
parent 172fb4c561
commit 61de303dc4
7 changed files with 164 additions and 0 deletions

View File

@@ -79,4 +79,7 @@ export const testers = {
"xiaohongshu": pattern =>
pattern.id?.length <= 24 && pattern.token?.length <= 64
|| pattern.shareId?.length <= 24,
"newgrounds": pattern =>
pattern.id?.length <= 12 || pattern.audioId?.length <= 12,
}