[mangahere] fix and improve chapter extraction
This commit is contained in:
@@ -111,13 +111,9 @@ class MangahereChapterExtractor(MangahereBase, ChapterExtractor):
|
||||
"""Yield all image-urls for this chapter"""
|
||||
pnum = 1
|
||||
while True:
|
||||
url, pos = text.extract(page, '<img src="', '"')
|
||||
yield url, None
|
||||
_ , pos = text.extract(page, '<img src="', '"', pos)
|
||||
_ , pos = text.extract(page, '<img src="', '"', pos)
|
||||
url, pos = text.extract(page, '<img src="', '"', pos)
|
||||
yield url, None
|
||||
|
||||
for url in text.extract_iter(page, '<img src="', '"'):
|
||||
if "/store/manga/" in url:
|
||||
yield url, None
|
||||
pnum += 2
|
||||
page = self.request(self.url_fmt.format(self.part, pnum)).text
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class XvideosGalleryExtractor(XvideosExtractor):
|
||||
(("https://www.xvideos.com/profiles"
|
||||
"/pervertedcouple/photos/751031/random_stuff"), {
|
||||
"url": "4f0d992e5dc39def2c3ac8e099d17bf09e76e3c7",
|
||||
"keyword": "750d462802d56eead0fe06c4f453419396d2f944",
|
||||
"keyword": "8d637b372c6231cc4ada92dd5918db5fdbd06520",
|
||||
}),
|
||||
("https://www.xvideos.com/profiles/pervertedcouple/photos/751032/", {
|
||||
"exception": exception.NotFoundError,
|
||||
|
||||
@@ -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.4.2"
|
||||
__version__ = "1.4.3-dev"
|
||||
|
||||
Reference in New Issue
Block a user