use Extractor._check_cookies() for all cookie checks

This commit is contained in:
Mike Fährmann 2021-12-16 02:21:16 +01:00
parent 63c6bc26b5
commit 9a25534490
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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"))