mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-22 10:42:34 +01:00
[mangastream] fix extraction
This commit is contained in:
parent
8809b32aed
commit
d122203be1
@ -1,5 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## Unreleased
|
||||
- Fixed extraction issues for `mangastream`
|
||||
|
||||
## 1.2.0 - 2018-02-16
|
||||
- Added support for:
|
||||
- `paheal` - https://rule34.paheal.net/ ([#69](https://github.com/mikf/gallery-dl/issues/69))
|
||||
|
@ -44,9 +44,8 @@ class MangastreamChapterExtractor(ChapterExtractor):
|
||||
|
||||
def get_images(self, page):
|
||||
while True:
|
||||
next_url, pos = text.extract(
|
||||
page, '<div class="page">\n<a href="', '"')
|
||||
image_url, pos = text.extract(
|
||||
page, '<img id="manga-page" src="', '"', pos)
|
||||
pos = page.index(' class="page"')
|
||||
next_url = text.extract(page, ' href="', '"', pos)[0]
|
||||
image_url = text.extract(page, ' src="', '"', pos)[0]
|
||||
yield urljoin(self.base_url, image_url), None
|
||||
page = self.request(urljoin(self.base_url, next_url)).text
|
||||
|
@ -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.2.0"
|
||||
__version__ = "1.2.1-dev"
|
||||
|
Loading…
Reference in New Issue
Block a user