mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-25 04:02:32 +01:00
[bluesky] match cbsky.app, bskye.app, bskyx.app and bsyy.app urls
This commit is contained in:
parent
ecc08e35d5
commit
80c7246732
@ -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?://)?c?bs[ky]y[ex]?\.app"
|
||||
USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)"
|
||||
|
||||
|
||||
|
@ -285,4 +285,28 @@ __tests__ = (
|
||||
"text" : {"quote with media", ""},
|
||||
},
|
||||
|
||||
{
|
||||
"#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,
|
||||
},
|
||||
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user