1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[hentaicafe] adjust default directory format

A separate folder for each chapter is rather pointless if almost all
manga have only one chapter each.
This commit is contained in:
Mike Fährmann 2018-09-07 18:25:09 +02:00
parent b4eca2633e
commit 488abeca0b
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -16,6 +16,7 @@ import re
class HentaicafeChapterExtractor(foolslide.FoolslideChapterExtractor): class HentaicafeChapterExtractor(foolslide.FoolslideChapterExtractor):
"""Extractor for manga-chapters from hentai.cafe""" """Extractor for manga-chapters from hentai.cafe"""
category = "hentaicafe" category = "hentaicafe"
directory_fmt = ["{category}", "{manga}"]
pattern = foolslide.chapter_pattern(r"(?:www\.)?hentai\.cafe/manga") pattern = foolslide.chapter_pattern(r"(?:www\.)?hentai\.cafe/manga")
test = [("https://hentai.cafe/manga/read/saitom-box/en/0/1/", { test = [("https://hentai.cafe/manga/read/saitom-box/en/0/1/", {
"url": "8c6a8c56875ba3ed7ab0a74a64f9960077767fc2", "url": "8c6a8c56875ba3ed7ab0a74a64f9960077767fc2",