mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:33:25 +00:00
Add referrer and origin to vidplay
This commit is contained in:
@@ -29,6 +29,7 @@ export const vidplayScraper = makeEmbed({
|
|||||||
}
|
}
|
||||||
|
|
||||||
const url = new URL(ctx.url);
|
const url = new URL(ctx.url);
|
||||||
|
console.log(url);
|
||||||
const subtitlesLink = url.searchParams.get('sub.info');
|
const subtitlesLink = url.searchParams.get('sub.info');
|
||||||
const captions: Caption[] = [];
|
const captions: Caption[] = [];
|
||||||
if (subtitlesLink) {
|
if (subtitlesLink) {
|
||||||
@@ -55,6 +56,10 @@ export const vidplayScraper = makeEmbed({
|
|||||||
type: 'hls',
|
type: 'hls',
|
||||||
playlist: source,
|
playlist: source,
|
||||||
flags: [flags.IP_LOCKED],
|
flags: [flags.IP_LOCKED],
|
||||||
|
headers: {
|
||||||
|
Referer: url.origin,
|
||||||
|
Origin: url.origin,
|
||||||
|
},
|
||||||
captions,
|
captions,
|
||||||
thumbnailTrack,
|
thumbnailTrack,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user