summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/bunkr.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/bunkr.py')
-rw-r--r--gallery_dl/extractor/bunkr.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/gallery_dl/extractor/bunkr.py b/gallery_dl/extractor/bunkr.py
index 3091f57..2502411 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)
@@ -77,7 +81,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor):
for file in files:
name = file["name"]
cdn = file["cdn"]
- if name.endswith(".mp4"):
+ if name.endswith((".mp4", ".m4v", ".mov")):
cdn = cdn.replace("//cdn", "//media-files")
file["file"] = cdn + "/" + name