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) {