Skip to content

Commit

Permalink
[bluesky] support 'main.bsky.dev' URLs (#4438)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 2, 2024
1 parent b92edb4 commit 99fe2b1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
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/([^/?#]+)"


Expand Down
10 changes: 10 additions & 0 deletions test/results/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@
),
},

{
"#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"),
Expand Down

0 comments on commit 99fe2b1

Please sign in to comment.