diff --git a/src/handler/Frembed.ts b/src/handler/Frembed.ts index 93cc60c..5dc235a 100644 --- a/src/handler/Frembed.ts +++ b/src/handler/Frembed.ts @@ -33,7 +33,7 @@ export class Frembed implements Handler { const urls: URL[] = []; for (const key in json) { - if (key.startsWith('link')) { + if (key.startsWith('link') && json[key] && !json[key].includes(',https')) { try { urls.push(new URL(json[key].trim())); } catch { diff --git a/src/handler/__snapshots__/Frembed.test.ts.snap b/src/handler/__snapshots__/Frembed.test.ts.snap index 511ec41..9812325 100644 --- a/src/handler/__snapshots__/Frembed.test.ts.snap +++ b/src/handler/__snapshots__/Frembed.test.ts.snap @@ -2,17 +2,6 @@ exports[`Frembed handle imdb black mirror s4e2 1`] = ` [ - { - "error": [Error: TypeError: fetch failed], - "isExternal": true, - "label": "ahvsh.com", - "meta": { - "countryCode": "fr", - "title": "Black Mirror 4x2", - }, - "sourceId": "external", - "url": "https://ahvsh.com/e/83izf7qzwpae,https://netu.frembed.fun/e/0DFgfkcXOsDP,https://likessb.com/e/7yjgl1x56n08.html,https://ds2play.com/e/fzfvfq3ngig0", - }, { "label": "DoodStream", "meta": {