Skip to content

Commit

Permalink
Refactor nfGetCookie to use getBaseUrl for Vsite retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu8443 committed Jan 17, 2025
1 parent b2647bf commit ea902b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/providers/netflixMirror/nfGetCookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class NetMirrorCookieFetcher {
const res = await axios.get(`${baseUrl}/home`, {withCredentials: false});
const $ = cheerio.load(res.data);
const addhash = $('body').attr('data-addhash');
const vSite = res.data.match(/var\s+Vsite\s*=\s*"([^"]+)"/)?.[1];
const vSite = await getBaseUrl('nfCookie');
const params = res.data.match(/Vsite\s*\+\s*'([^']+)'/)?.[1];
const cookieUrl = `${vSite}${params}`;
console.log('cookieUrl', cookieUrl);
Expand Down

0 comments on commit ea902b6

Please sign in to comment.