change some config keys

directory_fmt     -> directory
filename_fmt      -> filename
download-original -> original
This commit is contained in:
Mike Fährmann
2017-02-21 22:11:02 +01:00
parent 2a32b12043
commit e87e6fbc67
4 changed files with 12 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ class ExhentaiGalleryExtractor(Extractor):
self.count = 0
self.gid, self.token = match.groups()
self.original = config.interpolate(
("extractor", "exhentai", "download-original"), True)
("extractor", "exhentai", "original"), True)
self.wait_min = config.interpolate(
("extractor", "exhentai", "wait-min"), 3)
self.wait_max = config.interpolate(

View File

@@ -17,10 +17,10 @@ class PathFormat():
if extractor.subcategory:
key.append(extractor.subcategory)
self.filename_fmt = config.interpolate(
key + ["filename_fmt"], default=extractor.filename_fmt
key + ["filename"], default=extractor.filename_fmt
)
self.directory_fmt = config.interpolate(
key + ["directory_fmt"], default=extractor.directory_fmt
key + ["directory"], default=extractor.directory_fmt
)
self.has_extension = False
self.keywords = {}