Cookies Header function added

This commit is contained in:
killer069
2021-11-01 15:32:51 +05:30
parent 5214250eac
commit 703e36c78d
7 changed files with 24 additions and 13 deletions

View File

@@ -47,7 +47,8 @@ export function setCookieToken(options: { cookie: string }) {
youtubeData.file = false;
}
export function cookieHeaders(headCookie : string[]){
export function cookieHeaders(headCookie: string[]) {
if (!youtubeData?.cookie) return;
headCookie.forEach((x: string) => {
x.split(';').forEach((x) => {
const arr = x.split('=');
@@ -58,4 +59,4 @@ export function cookieHeaders(headCookie : string[]){
});
});
uploadCookie();
}
}