use Extractor._check_cookies() for all cookie checks

pull/2089/head
Mike Fährmann 3 years ago
parent 63c6bc26b5
commit 9a25534490
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -33,7 +33,7 @@ class FanboxExtractor(Extractor):
def items(self):
if self._warning:
if "FANBOXSESSID" not in self.session.cookies:
if not self._check_cookies(("FANBOXSESSID",)):
self.log.warning("no 'FANBOXSESSID' cookie set")
FanboxExtractor._warning = False

@ -22,7 +22,7 @@ class FantiaExtractor(Extractor):
def items(self):
if self._warning:
if "_session_id" not in self.session.cookies:
if not self._check_cookies(("_session_id",)):
self.log.warning("no '_session_id' cookie set")
FantiaExtractor._warning = False

@ -29,7 +29,7 @@ class PatreonExtractor(Extractor):
def items(self):
if self._warning:
if "session_id" not in self.session.cookies:
if not self._check_cookies(("session_id",)):
self.log.warning("no 'session_id' cookie set")
PatreonExtractor._warning = False
generators = self._build_file_generators(self.config("files"))

Loading…
Cancel
Save