From 4ca1a6e5f3d820111d19cd6c4fb1125f5451f855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 9 Sep 2022 11:44:27 +0200 Subject: [PATCH] [bunkr] fix extraction (#2903) --- gallery_dl/extractor/bunkr.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gallery_dl/extractor/bunkr.py b/gallery_dl/extractor/bunkr.py index 3091f572..5cf90efa 100644 --- a/gallery_dl/extractor/bunkr.py +++ b/gallery_dl/extractor/bunkr.py @@ -37,6 +37,11 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): "pattern": r"https://media-files\.bunkr\.is/_-RnHoW69L\.mp4", "content": "80e61d1dbc5896ae7ef9a28734c747b28b320471", }), + # cdn4 + ("https://bunkr.is/a/iXTTc1o2", { + "pattern": r"https://(cdn|media-files)4\.bunkr\.is/", + "content": "da29aae371b7adc8c5ef8e6991b66b69823791e8", + }), ("https://bunkr.to/a/Lktg9Keq"), ) @@ -66,9 +71,8 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): data = json.loads(text.extract( self.request(url).text, 'id="__NEXT_DATA__" type="application/json">', '<')[0]) - props = data["props"]["pageProps"] - album = props["album"] - files = props["files"] + album = data["props"]["pageProps"]["album"] + files = album["files"] except Exception as exc: self.log.debug(exc.__class__.__name__, exc) self.root = self.root.replace("bunkr", "app.bunkr", 1)