diff --git a/gallery_dl/extractor/bunkr.py b/gallery_dl/extractor/bunkr.py index a9596d2f..17d066d4 100644 --- a/gallery_dl/extractor/bunkr.py +++ b/gallery_dl/extractor/bunkr.py @@ -9,7 +9,7 @@ """Extractors for https://bunkr.su/""" from .lolisafe import LolisafeAlbumExtractor -from .. import text, util +from .. import text class BunkrAlbumExtractor(LolisafeAlbumExtractor): @@ -19,7 +19,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): pattern = r"(?:https?://)?(?:app\.)?bunkr\.(?:[sr]u|is|to)/a/([^/?#]+)" test = ( ("https://bunkr.su/a/Lktg9Keq", { - "pattern": r"https://cdn\.bunkr\.su/test-テスト-\"&>-QjgneIQv\.png", + "pattern": r"https://cdn\.bunkr\.ru/test-テスト-\"&>-QjgneIQv\.png", "content": "0c8768055e4e20e7c7259608b67799171b691140", "keyword": { "album_id": "Lktg9Keq", @@ -40,44 +40,57 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): ("https://bunkr.is/a/iXTTc1o2", { "pattern": r"https://(cdn|media-files)4\.bunkr\.ru/", "content": "da29aae371b7adc8c5ef8e6991b66b69823791e8", + "keyword": { + "album_id": "iXTTc1o2", + "album_name": "test2", + "album_size": "691.1 KB", + "count": 2, + "description": "072022", + "filename": "re:video-wFO9FtxG|image-sZrQUeOx", + "id": "re:wFO9FtxG|sZrQUeOx", + "name": "re:video|image", + "num": int, + }, }), ("https://bunkr.to/a/Lktg9Keq"), ) def fetch_album(self, album_id): - root = self.root + # album metadata + page = self.request(self.root + "/a/" + self.album_id).text + info = text.split_html(text.extr( + page, "