[foolslide] fix minor chapter number

This commit is contained in:
Mike Fährmann
2017-09-25 12:59:24 +02:00
parent 77bf923c56
commit c51616f8d8
2 changed files with 3 additions and 3 deletions

View File

@@ -45,12 +45,12 @@ class FoolslideExtractor(SharedConfigExtractor):
@staticmethod
def parse_chapter_url(url, data):
info = url.partition("/read/")[2].split("/")
info = url.partition("/read/")[2].rstrip("/").split("/")
data["lang"] = info[1]
data["language"] = util.code_to_language(info[1])
data["volume"] = util.safe_int(info[2])
data["chapter"] = util.safe_int(info[3])
data["chapter_minor"] = "." + info[4] if len(info) >= 6 else ""
data["chapter_minor"] = "." + info[4] if len(info) >= 5 else ""
return data

View File

@@ -24,7 +24,7 @@ class WorldthreeChapterExtractor(foolslide.FoolslideChapterExtractor):
(("http://www.slide.world-three.org"
"/read/idolmster_cg_shuffle/en/0/4/2/"), {
"url": "6028ea5ca282744f925dfad92eeb98509f9cc78c",
"keyword": "5710e9c862c53d89268d68f353c1fe5836a323d1",
"keyword": "d478e9f20847deb1844dba318acaa8b91c19468a",
}),
]
scheme = "http"