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

[kissmanga] extend chapter-string regex (closes #58)

This commit is contained in:
Mike Fährmann 2017-12-24 22:53:10 +01:00
parent 0ba618dd1a
commit 28cd78aae0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
6 changed files with 12 additions and 7 deletions

View File

@ -1,5 +1,8 @@
# Changelog
## Unreleased
- Fixed chapter information parsing for certain manga on `kissmanga` ([#58](https://github.com/mikf/gallery-dl/issues/58))
## 1.1.1 - 2017-12-22
- Added support for:
- `slideshare` - https://www.slideshare.net/ ([#54](https://github.com/mikf/gallery-dl/issues/54))

View File

@ -301,7 +301,7 @@ class DeviantartCollectionExtractor(DeviantartExtractor):
test = [(("https://pencilshadings.deviantart.com"
"/favourites/70595441/3D-Favorites"), {
"url": "36ea299132a6b0a0cd319318e9bf18ad32e9b8cc",
"keyword": "e32b1840f1e09d1671bdc0f8a7a72472a0df57a8",
"keyword": "703068ad65c4f2d6e34c5f58483e8a221cb55348",
"options": (("original", False),),
})]

View File

@ -20,7 +20,7 @@ class JaiminisboxChapterExtractor(foolslide.FoolslideChapterExtractor):
"keyword": "d8919bc8f0351b44e938862214e654401962b5a5",
}),
("https://jaiminisbox.com/reader/read/dr-stone/en/0/16/", {
"keyword": "faa77b1f6ff462cd5e01511ab55b8c2d6ec42c3e",
"keyword": "9b658599651f1ae87cab3e0e29dd21e8337a362c",
}),
]
method = "base64"

View File

@ -58,9 +58,11 @@ class KissmangaExtractor(Extractor):
), data["chapter_string"])
if not match:
match = re.match(
r"[\w ]+?(?: -)? 0*()(\d+)()(?: *[:-]? *(.+))?",
data["chapter_string"])
match = re.match((
r".+?(?: -)? ()"
r"0*(\d+)(?:[Vv.]0*(\d+))?"
r"(?: *[:-]? *(.+))?"
), data["chapter_string"])
volume, chapter, minor, title = match.groups()
data["volume"] = util.safe_int(volume)

View File

@ -6,4 +6,4 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
__version__ = "1.1.1"
__version__ = "1.1.2-dev"

View File

@ -82,7 +82,7 @@ skip = [
"exhentai", "kissmanga", "mangafox", "dynastyscans", "nijie",
"archivedmoe", "archiveofsins", "thebarchive",
# temporary issues
"hbrowse",
"mangapark",
]
# enable selective testing for direct calls
if __name__ == '__main__' and len(sys.argv) > 1: