Skip to content

Commit

Permalink
merge #6410: [bluesky] match common bluesky embed fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Nov 2, 2024
2 parents cd47425 + 80c7246 commit 93adfbe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gallery_dl/extractor/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
from .. import text, util, exception
from ..cache import cache, memcache

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


Expand Down
24 changes: 24 additions & 0 deletions test/results/bluesky.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,4 +357,28 @@
},
},

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

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

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

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

)

0 comments on commit 93adfbe

Please sign in to comment.