diff --git a/gallery_dl/extractor/bluesky.py b/gallery_dl/extractor/bluesky.py index de5d0c6f..2c4e069d 100644 --- a/gallery_dl/extractor/bluesky.py +++ b/gallery_dl/extractor/bluesky.py @@ -12,7 +12,7 @@ from .common import Extractor, Message from .. import text, util, exception from ..cache import cache, memcache -BASE_PATTERN = r"(?:https?://)?bsky\.app" +BASE_PATTERN = r"(?:https?://)?(?:(?:www\.)?bsky\.app|main\.bsky\.dev)" USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)" diff --git a/test/results/bluesky.py b/test/results/bluesky.py index 50a0dcd9..870c06cb 100644 --- a/test/results/bluesky.py +++ b/test/results/bluesky.py @@ -17,6 +17,16 @@ __tests__ = ( ), }, +{ + "#url" : "https://www.bsky.app/profile/bsky.app", + "#class" : bluesky.BlueskyUserExtractor, +}, + +{ + "#url" : "https://main.bsky.dev/profile/bsky.app", + "#class" : bluesky.BlueskyUserExtractor, +}, + { "#url" : "https://bsky.app/profile/did:plc:z72i7hdynmk6r22z27h6tvur", "#category": ("", "bluesky", "user"),