fix: tiktok downloader v3

This commit is contained in:
Kelvin 2024-09-04 12:14:56 +08:00
parent 824f853f9b
commit 16374e3cda

View File

@ -154,7 +154,7 @@ export const MusicalDown = (url: string, proxy?: string) =>
: text.includes("watermark")
? "videoWatermark"
: `video${i}`
] = $(v).attr("href")
] = $(v).attr("href") != undefined ? $(v).attr("href") : /downloadX\('([^']+)'\)/.exec($(v).attr('onclick'))[1];
i++
}
})