1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 04:02:32 +01:00

fix smaller stuff

- change filename option in example config file
- adapt default filename format for mangafox
- remove unnecessary newline

[skip ci]
This commit is contained in:
Mike Fährmann 2017-09-10 22:48:08 +02:00
parent 6f30cf4c64
commit 470bbe9d8c
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,7 @@
{
"user":
{
"directory": ["{category}", "{artist-id}"]
"directory": ["{category}", "{user[id]}"]
},
"bookmark":
{

View File

@ -102,7 +102,6 @@ def main():
log.debug("Version %s", __version__)
log.debug("Python %s - %s",
platform.python_version(), platform.platform())
print(file=sys.stderr)
if args.list_modules:
for module_name in extractor.modules:

View File

@ -18,7 +18,7 @@ class MangafoxChapterExtractor(AsynchronousExtractor):
category = "mangafox"
subcategory = "chapter"
directory_fmt = ["{category}", "{manga}", "c{chapter:>03}{chapter_minor}"]
filename_fmt = ("{manga}_c{chapter:>03}{chapter-minor}_"
filename_fmt = ("{manga}_c{chapter:>03}{chapter_minor}_"
"{page:>03}.{extension}")
pattern = [(r"(?:https?://)?(?:www\.)?(mangafox\.me/manga/"
r"[^/]+/(v\d+/)?c\d+[^/]*)")]