diff --git a/docs/configuration.rst b/docs/configuration.rst index 68a97438..8d061e84 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1760,7 +1760,7 @@ extractor.bunkr.endpoint Type ``string`` Default - ``"/api/_001"`` + ``"/api/_001_v2"`` Description API endpoint for retrieving file URLs. diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 3a3c6555..fda75afe 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -179,7 +179,7 @@ }, "bunkr": { - "endpoint": "/api/_001", + "endpoint": "/api/_001_v2", "tlds": false }, "chzzk": diff --git a/gallery_dl/extractor/bunkr.py b/gallery_dl/extractor/bunkr.py index da036387..97680c56 100644 --- a/gallery_dl/extractor/bunkr.py +++ b/gallery_dl/extractor/bunkr.py @@ -61,6 +61,7 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): category = "bunkr" root = "https://bunkr.si" root_dl = "https://get.bunkrr.su" + root_api = "https://apidl.bunkr.ru" archive_fmt = "{album_id}_{id|id_url}" pattern = BASE_PATTERN + r"/a/([^/?#]+)" example = "https://bunkr.si/a/ID" @@ -76,9 +77,9 @@ class BunkrAlbumExtractor(LolisafeAlbumExtractor): endpoint = self.config("endpoint") if not endpoint: - endpoint = self.root_dl + "/api/_001" + endpoint = self.root_api + "/api/_001_v2" elif endpoint[0] == "/": - endpoint = self.root_dl + endpoint + endpoint = self.root_api + endpoint self.endpoint = endpoint self.offset = 0