use GalleryExtractor as common base class

This commit is contained in:
Mike Fährmann
2019-02-26 14:08:02 +01:00
parent 77551bf01b
commit 3595cd582f
6 changed files with 32 additions and 48 deletions

View File

@@ -284,6 +284,14 @@ class MangaExtractor(Extractor):
"""Return a list of all (chapter-url, metadata)-tuples"""
class GalleryExtractor(ChapterExtractor):
subcategory = "gallery"
filename_fmt = "{category}_{gallery_id}_{page:>03}.{extension}"
directory_fmt = ("{category}", "{gallery_id} {title}")
archive_fmt = "{gallery_id}_{page}"
class AsynchronousMixin():
"""Run info extraction in a separate thread"""