[nijie] fix dojin extraction

- correctly extract artist_id
- set extension to "jpg" if it was empty and let filetype checks do
  the rest
This commit is contained in:
Mike Fährmann
2018-02-09 21:51:35 +01:00
parent 7f7c16ae37
commit f5f2d29f56
3 changed files with 21 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2015-2017 Mike Fährmann
# Copyright 2015-2018 Mike Fährmann
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
@@ -26,6 +26,16 @@ class PowermangaMangaExtractor(foolslide.FoolslideMangaExtractor):
category = "powermanga"
pattern = foolslide.manga_pattern(r"read\.powermanga\.org")
test = [("https://read.powermanga.org/series/one_piece/", {
"url": "e5e9a64c14ca51a170e14c4b711aaa88fdf7a7aa",
"keyword": "1245ab2a730f9129001a4589b1d8615a17dc4a7b",
"count": ">= 1",
"keyword": {
"chapter": int,
"chapter_minor": str,
"chapter_string": str,
"group": "PowerManga",
"lang": "en",
"language": "English",
"manga": "One Piece",
"title": str,
"volume": int,
},
})]