diff --git a/docs/configuration.rst b/docs/configuration.rst index b85d042f..c809770b 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -1810,6 +1810,22 @@ Description Download embedded videos hosted on https://www.blogger.com/ +extractor.bluesky.api-server +---------------------------- +Type + ``string`` +Default + | ``"https://bsky.social"`` if a + `username `__ + is provided + | ``"https://api.bsky.app"`` otherwise +Description + Server address for API requests. + + Can be used when self-hosting a + `PDS `__ + + extractor.bluesky.include ------------------------- Type diff --git a/docs/gallery-dl.conf b/docs/gallery-dl.conf index 74bac598..ff72b2d5 100644 --- a/docs/gallery-dl.conf +++ b/docs/gallery-dl.conf @@ -171,11 +171,12 @@ "username": "", "password": "", - "include" : ["media"], - "metadata": false, - "quoted" : false, - "reposts" : false, - "videos" : true, + "api-server": null, + "include" : ["media"], + "metadata" : false, + "quoted" : false, + "reposts" : false, + "videos" : true, "likes": { "depth" : 0, diff --git a/gallery_dl/extractor/bluesky.py b/gallery_dl/extractor/bluesky.py index 4403b663..c981608b 100644 --- a/gallery_dl/extractor/bluesky.py +++ b/gallery_dl/extractor/bluesky.py @@ -400,7 +400,9 @@ class BlueskyAPI(): self.headers = {"Accept": "application/json"} self.username, self.password = extractor._get_auth_info() - if self.username: + if srv := extractor.config("api-server", False): + self.root = srv.rstrip("/") + elif self.username: self.root = "https://bsky.social" else: self.root = "https://api.bsky.app"