From fa3e91663dffd12d6c16361db3347b8b2133a480 Mon Sep 17 00:00:00 2001 From: reidlab Date: Sun, 23 Nov 2025 18:30:22 -0800 Subject: [PATCH] fix token grabbing --- src/appleMusicApi/token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/appleMusicApi/token.ts b/src/appleMusicApi/token.ts index 912d343..dc02c3c 100644 --- a/src/appleMusicApi/token.ts +++ b/src/appleMusicApi/token.ts @@ -9,7 +9,7 @@ export async function getToken(baseUrl: string): Promise { const indexResponse = await request(baseUrl); const indexBody = await indexResponse.body.text(); - const jsRegex = /\/assets\/index-legacy-[^/]+\.js/; + const jsRegex = /\/assets\/index-legacy[~-][^/]+\.js/; const jsPath = indexBody.match(jsRegex)?.[0]; if (!jsPath) {