From db857b40d8e813926db44d00f4c95ea4544812b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 17 Oct 2021 21:47:11 +0200 Subject: [PATCH] [kemonoparty] improve inline extraction (#1899) --- gallery_dl/extractor/kemonoparty.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index 4a03e991..eff18ce7 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -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