fix(source): set correct referer for Movix

This commit is contained in:
WebStreamr 2025-09-24 18:53:31 +00:00
parent 42d46accb6
commit 6214df7e8f
No known key found for this signature in database
2 changed files with 28 additions and 1 deletions

View file

@ -18,6 +18,8 @@ export class Movix extends Source {
public readonly baseUrl = 'https://api.movix.site';
private readonly baseWebsiteUrl = 'https://movix.website';
private readonly fetcher: Fetcher;
public constructor(fetcher: Fetcher) {
@ -46,6 +48,6 @@ export class Movix extends Source {
? `${json['tmdb_details']['title']} ${tmdbId.season}x${tmdbId.episode}`
: json['tmdb_details']['title'];
return urls.map(url => ({ url, meta: { countryCodes: [CountryCode.fr], title } }));
return urls.map(url => ({ url, meta: { countryCodes: [CountryCode.fr], referer: this.baseWebsiteUrl, title } }));
};
}

View file

@ -7,6 +7,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://lecteur6.com/video/18085327b86002fc604c323b9a07f997",
@ -16,6 +17,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://vidoza.net/embed-55hvynbdyqvc.html",
@ -25,6 +27,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://wishonly.site/e/kykhuv6tscs8",
@ -34,6 +37,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://darkibox.com/embed-5ghz7myucfjq.html",
@ -43,6 +47,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://supervideo.cc/e/uieh17bid0ce",
@ -52,6 +57,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://dood.li/e/gha75crrm8nf",
@ -61,6 +67,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://filemoon.sx/e/c5lhlypfasmm",
@ -70,6 +77,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://voe.sx/e/aghpmosgkhsu",
@ -79,6 +87,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "http://vidmoly.me/embed-79w00r2qv88n.html",
@ -88,6 +97,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://waaw.to/f/JWzt5eJSbpu8",
@ -97,6 +107,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://veev.to/e/lu4c24e3aetf",
@ -106,6 +117,7 @@ exports[`Movix handle battle royal 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Battle Royale",
},
"url": "https://listeamed.net/e/eL2157Kzw8m5rw4",
@ -120,6 +132,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://uqload.net/embed-xjmhb7rbzdjh.html",
@ -129,6 +142,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://lulustream.com/e/c3defa2cbtmm",
@ -138,6 +152,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://wishonly.site/e/bzfdmjlrsqxk",
@ -147,6 +162,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://vidoza.net/embed-i2e8gn4m64e1.html",
@ -156,6 +172,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://filemoon.sx/e/0iuzfpt5cbx6",
@ -165,6 +182,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://voe.sx/e/mustkdlxo67t",
@ -174,6 +192,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "http://vidmoly.me/embed-2rls953tvhxc.html",
@ -183,6 +202,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://waaw.to/f/GdQ6mHpxPdd8",
@ -192,6 +212,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://veev.to/e/nifwerilwo0i",
@ -201,6 +222,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://listeamed.net/e/8ozgENePwdLxmjA",
@ -210,6 +232,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://coflix.upn.one/#x63hig",
@ -219,6 +242,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://do7go.com/e/2zn4y7ueq1ta",
@ -228,6 +252,7 @@ exports[`Movix handle tmdb black mirror s4e2 1`] = `
"countryCodes": [
"fr",
],
"referer": "https://movix.website",
"title": "Black Mirror 4x2",
},
"url": "https://movearnpre.com/embed/eiel2p4z74kp",