Skip to content

Commit

Permalink
merge #6411: [bluesky] match fxbsky.app and vxbsky.app URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 2, 2024
2 parents 93adfbe + 565dc5b commit 5ba1280
Show file tree
Hide file tree
Showing 2 changed files with 13 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 @@ -13,7 +13,7 @@
from ..cache import cache, memcache

BASE_PATTERN = (r"(?:https?://)?"
r"(?:(?:www\.)?c?bs[ky]y[ex]?\.app|main\.bsky\.dev)")
r"(?:(?:www\.)?(?:c|[fv]x)?bs[ky]y[ex]?\.app|main\.bsky\.dev)")
USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)"


Expand Down
12 changes: 12 additions & 0 deletions test/results/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,16 @@
"#class" : bluesky.BlueskyPostExtractor,
},

{
"#url" : "https://fxbsky.app/profile/bsky.app/post/3kh5rarr3gn2n",
"#category": ("", "bluesky", "post"),
"#class" : bluesky.BlueskyPostExtractor,
},

{
"#url" : "https://vxbsky.app/profile/bsky.app/post/3kh5rarr3gn2n",
"#category": ("", "bluesky", "post"),
"#class" : bluesky.BlueskyPostExtractor,
},

)

0 comments on commit 5ba1280

Please sign in to comment.