fix vidify js regex

This commit is contained in:
Aykhan 2025-08-15 12:00:38 +04:00
parent b2ac6c2cf7
commit 4591fedd3b

View file

@ -26,7 +26,7 @@ async function getAuthHeader(ctx: any): Promise<string> {
},
});
const jsFileRegex = /\/assets\/index-([a-zA-Z0-9]+)\.js/;
const jsFileRegex = /\/assets\/index-([a-zA-Z0-9-]+)\.js/;
const jsFileMatch = playerPage.match(jsFileRegex);
if (!jsFileMatch) {
throw new Error('Could not find the JS file URL in the player page');