Skip to content

Commit

Permalink
[kissmanga] extend chapter-string regex (closes #58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Dec 24, 2017
1 parent 0ba618d commit 28cd78a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/deviantart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),),
})]

Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/extractor/jaiminisbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 5 additions & 3 deletions gallery_dl/extractor/kissmanga.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ def parse_chapter_string(data):
), 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)
Expand Down
2 changes: 1 addition & 1 deletion gallery_dl/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion test/test_extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test(self):
"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:
Expand Down

0 comments on commit 28cd78a

Please sign in to comment.