mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[bluesky] support 'main.bsky.dev' URLs (#4438)
This commit is contained in:
parent
b92edb4614
commit
99fe2b1f55
@ -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/([^/?#]+)"
|
||||
|
||||
|
||||
|
@ -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"),
|
||||
|
Loading…
Reference in New Issue
Block a user