[exhentai] restrict default directory name length (#545)
This commit is contained in:
@@ -23,7 +23,7 @@ BASE_PATTERN = r"(?:https?://)?(e[x-]|g\.e-)hentai\.org"
|
|||||||
class ExhentaiExtractor(Extractor):
|
class ExhentaiExtractor(Extractor):
|
||||||
"""Base class for exhentai extractors"""
|
"""Base class for exhentai extractors"""
|
||||||
category = "exhentai"
|
category = "exhentai"
|
||||||
directory_fmt = ("{category}", "{gallery_id} {title}")
|
directory_fmt = ("{category}", "{gallery_id} {title[:247]}")
|
||||||
filename_fmt = (
|
filename_fmt = (
|
||||||
"{gallery_id}_{num:>04}_{image_token}_{filename}.{extension}")
|
"{gallery_id}_{num:>04}_{image_token}_{filename}.{extension}")
|
||||||
archive_fmt = "{gallery_id}_{num}"
|
archive_fmt = "{gallery_id}_{num}"
|
||||||
|
|||||||
Reference in New Issue
Block a user