add cors restriction to caption, add preferredHeaders
This commit is contained in:
parent
f67d82200f
commit
c6c921f80b
|
@ -32,7 +32,7 @@ export const closeLoadScraper = makeEmbed({
|
||||||
return {
|
return {
|
||||||
id: url,
|
id: url,
|
||||||
language,
|
language,
|
||||||
hasCorsRestrictions: false,
|
hasCorsRestrictions: true,
|
||||||
type: captionType,
|
type: captionType,
|
||||||
url,
|
url,
|
||||||
};
|
};
|
||||||
|
@ -60,6 +60,10 @@ export const closeLoadScraper = makeEmbed({
|
||||||
playlist: url,
|
playlist: url,
|
||||||
captions,
|
captions,
|
||||||
flags: [flags.IP_LOCKED],
|
flags: [flags.IP_LOCKED],
|
||||||
|
preferredHeaders: {
|
||||||
|
Referer: 'https://closeload.top/',
|
||||||
|
Origin: 'https://closeload.top',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue