1
0
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:
Mike Fährmann 2018-02-17 22:40:16 +01:00
parent 8809b32aed
commit d122203be1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
3 changed files with 7 additions and 5 deletions

View File

@ -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))

View File

@ -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

View File

@ -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"