[mangadex] fix manga extraction (closes #84)
Chapter listings for manga now use https://mangadex.org/manga/<id>/_/chapters/2/ as URL instead of https://mangadex.org/manga/<id>/_//2/
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
# Unreleased
|
||||||
|
- Fixed extraction of `mangadex` manga with more than 100 chapters (#84)
|
||||||
|
|
||||||
## 1.3.5 - 2018-05-04
|
## 1.3.5 - 2018-05-04
|
||||||
- Added support for:
|
- Added support for:
|
||||||
- `smugmug` - https://www.smugmug.com/
|
- `smugmug` - https://www.smugmug.com/
|
||||||
|
|||||||
@@ -91,8 +91,8 @@ class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
|
|||||||
"""Extractor for manga from komikcast.com"""
|
"""Extractor for manga from komikcast.com"""
|
||||||
pattern = [r"(?:https?://)?(?:www\.)?(komikcast\.com/[^/?&#]+/?)$"]
|
pattern = [r"(?:https?://)?(?:www\.)?(komikcast\.com/[^/?&#]+/?)$"]
|
||||||
test = [("https://komikcast.com/tonari-no-kashiwagi-san/", {
|
test = [("https://komikcast.com/tonari-no-kashiwagi-san/", {
|
||||||
"url": "ae862f22eb17fa97adf49222377ebe4412719771",
|
"url": "c3c7a9233904d1c9e12dbb20911934af4b255ff8",
|
||||||
"keyword": "cd1ec571feacbc32e3b72c437d2e93e6b825be60",
|
"keyword": "a4c7c24c87df41ff1d11da21e65df13d3a912691",
|
||||||
})]
|
})]
|
||||||
|
|
||||||
def chapters(self, page):
|
def chapters(self, page):
|
||||||
|
|||||||
@@ -116,6 +116,9 @@ class MangadexMangaExtractor(MangadexExtractor, MangaExtractor):
|
|||||||
"language": str,
|
"language": str,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
("https://mangadex.org/manga/13318/dagashi-kashi/chapters/2/", {
|
||||||
|
"count": ">= 100",
|
||||||
|
}),
|
||||||
]
|
]
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
per_page = 100
|
per_page = 100
|
||||||
@@ -166,4 +169,4 @@ class MangadexMangaExtractor(MangadexExtractor, MangaExtractor):
|
|||||||
return results
|
return results
|
||||||
|
|
||||||
num += 1
|
num += 1
|
||||||
page = self.request("{}/_/{}/".format(self.url, num)).text
|
page = self.request("{}/_/chapters/{}/".format(self.url, num)).text
|
||||||
|
|||||||
@@ -6,4 +6,4 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
__version__ = "1.3.5"
|
__version__ = "1.3.6-dev"
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ TRAVIS_SKIP = {
|
|||||||
|
|
||||||
# temporary issues, etc.
|
# temporary issues, etc.
|
||||||
BROKEN = {
|
BROKEN = {
|
||||||
|
"pixiv", # API requests sometimes fail
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user