mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 11:13: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);
|
||||
console.log(url);
|
||||
const subtitlesLink = url.searchParams.get('sub.info');
|
||||
const captions: Caption[] = [];
|
||||
if (subtitlesLink) {
|
||||
@@ -55,6 +56,10 @@ export const vidplayScraper = makeEmbed({
|
||||
type: 'hls',
|
||||
playlist: source,
|
||||
flags: [flags.IP_LOCKED],
|
||||
headers: {
|
||||
Referer: url.origin,
|
||||
Origin: url.origin,
|
||||
},
|
||||
captions,
|
||||
thumbnailTrack,
|
||||
},
|
||||
|
Reference in New Issue
Block a user