[bluesky] match fxbsky.app and vxbsky.app

This commit is contained in:
Delphox
2024-11-02 16:00:43 -03:00
committed by GitHub
parent 93adfbe935
commit 565dc5b43b
2 changed files with 13 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ from .. import text, util, exception
from ..cache import cache, memcache from ..cache import cache, memcache
BASE_PATTERN = (r"(?:https?://)?" 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/([^/?#]+)" USER_PATTERN = BASE_PATTERN + r"/profile/([^/?#]+)"

View File

@@ -381,4 +381,16 @@ __tests__ = (
"#class" : bluesky.BlueskyPostExtractor, "#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,
},
) )