1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 02:32:33 +01:00

[bluesky] support 'main.bsky.dev' URLs (#4438)

This commit is contained in:
Mike Fährmann 2024-11-02 15:32:47 +01:00
parent b92edb4614
commit 99fe2b1f55
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88
2 changed files with 11 additions and 1 deletions

View File

@ -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/([^/?#]+)"

View File

@ -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"),