1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[kemonoparty] improve inline extraction (#1899)

This commit is contained in:
Mike Fährmann 2021-10-17 21:47:11 +02:00
parent 975e0a4fe0
commit db857b40d8
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -29,7 +29,9 @@ class KemonopartyExtractor(Extractor):
def items(self):
self._prepare_ddosguard_cookies()
find_inline = re.compile(r'src="(/inline/[^"]+)').findall
find_inline = re.compile(
r'src="(?:https?://kemono\.party)?(/inline/[^"]+'
r'|/[0-9a-f]{2}/[0-9a-f]{2}/[0-9a-f]{64}\.[^"]+)').findall
skip_service = \
"patreon" if self.config("patreon-skip-file", True) else None