fix(core.providers.getvidtik): fix null url in [1]

Signed-off-by: Hanif Dwy Putra S <hanifdwyputrasembiring@gmail.com>
This commit is contained in:
Hanif Dwy Putra S
2022-10-22 11:20:02 +00:00
parent 1c78fd234f
commit 579cd705d4

View File

@@ -74,7 +74,7 @@ export class GetVidTikProvider extends BaseProvider {
const matchs = matchLink(html);
if (matchs) {
const tiktokMatchs = matchs.filter((url) =>
/http(s)?:\/\/(.*)\.tiktok(cdn)?\.com/gi.test(url),
/http(s)?:\/\/(.*)\.(tiktok(cdn)?\.com|akamaized.net)/gi.test(url),
);
if (tiktokMatchs) {