From 21ff77fea0f937bf3b8a7e50aed4675b8a3d1b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sun, 14 Aug 2022 17:26:29 +0200 Subject: [PATCH] [zerochan] extract more metadata for single posts Neither HTML pages nor RSS feed entries have *all* metadata. It might be necessary to do 1-2 extra HTTP requests to grab everything. --- gallery_dl/extractor/zerochan.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gallery_dl/extractor/zerochan.py b/gallery_dl/extractor/zerochan.py index c6011c04..2b5acd89 100644 --- a/gallery_dl/extractor/zerochan.py +++ b/gallery_dl/extractor/zerochan.py @@ -67,6 +67,9 @@ class ZerochanExtractor(BooruExtractor): "width" : extr('"width": "', ' '), "height": extr('"height": "', ' '), "size" : extr('"contentSize": "', 'B'), + "path" : text.split_html(extr( + 'class="breadcrumbs', '

'))[3::2], + "tags" : extr('alt="Tags: ', '"').split(", ") }