use Extractor._check_cookies() for all cookie checks
This commit is contained in:
parent
63c6bc26b5
commit
9a25534490
@ -33,7 +33,7 @@ class FanboxExtractor(Extractor):
|
|||||||
def items(self):
|
def items(self):
|
||||||
|
|
||||||
if self._warning:
|
if self._warning:
|
||||||
if "FANBOXSESSID" not in self.session.cookies:
|
if not self._check_cookies(("FANBOXSESSID",)):
|
||||||
self.log.warning("no 'FANBOXSESSID' cookie set")
|
self.log.warning("no 'FANBOXSESSID' cookie set")
|
||||||
FanboxExtractor._warning = False
|
FanboxExtractor._warning = False
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class FantiaExtractor(Extractor):
|
|||||||
def items(self):
|
def items(self):
|
||||||
|
|
||||||
if self._warning:
|
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")
|
self.log.warning("no '_session_id' cookie set")
|
||||||
FantiaExtractor._warning = False
|
FantiaExtractor._warning = False
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ class PatreonExtractor(Extractor):
|
|||||||
def items(self):
|
def items(self):
|
||||||
|
|
||||||
if self._warning:
|
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")
|
self.log.warning("no 'session_id' cookie set")
|
||||||
PatreonExtractor._warning = False
|
PatreonExtractor._warning = False
|
||||||
generators = self._build_file_generators(self.config("files"))
|
generators = self._build_file_generators(self.config("files"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user