fix: use expires FlareSolverr cookie prop

expiry seems to be only existing in Byparr
This commit is contained in:
webstreamr 2025-06-04 22:17:18 +02:00 committed by GitHub
parent d0802fea50
commit 4de5be2624
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,7 +21,7 @@ interface HostQueue {
interface FlareResolverCookie {
domain: string;
expiry: number;
expires: number;
httpOnly: boolean;
name: string;
path: string;
@ -119,7 +119,7 @@ export class Fetcher {
new Cookie({
key: cookie.name,
value: cookie.value,
expires: new Date(cookie.expiry * 1000),
expires: new Date(cookie.expires * 1000),
domain: cookie.domain.replace(/^.+/, ''),
}),
url.href,