1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 20:22:36 +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 # Changelog
## Unreleased
- Fixed extraction issues for `mangastream`
## 1.2.0 - 2018-02-16 ## 1.2.0 - 2018-02-16
- Added support for: - Added support for:
- `paheal` - https://rule34.paheal.net/ ([#69](https://github.com/mikf/gallery-dl/issues/69)) - `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): def get_images(self, page):
while True: while True:
next_url, pos = text.extract( pos = page.index(' class="page"')
page, '<div class="page">\n<a href="', '"') next_url = text.extract(page, ' href="', '"', pos)[0]
image_url, pos = text.extract( image_url = text.extract(page, ' src="', '"', pos)[0]
page, '<img id="manga-page" src="', '"', pos)
yield urljoin(self.base_url, image_url), None yield urljoin(self.base_url, image_url), None
page = self.request(urljoin(self.base_url, next_url)).text 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 # 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.2.0" __version__ = "1.2.1-dev"