From 565dc5b43b7f7b13d0d491e0bd20767f2ea92e0f Mon Sep 17 00:00:00 2001 From: Delphox Date: Sat, 2 Nov 2024 16:00:43 -0300 Subject: [PATCH] [bluesky] match fxbsky.app and vxbsky.app --- gallery_dl/extractor/bluesky.py | 2 +- test/results/bluesky.py | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/bluesky.py b/gallery_dl/extractor/bluesky.py index bb0cfaa1f7..18a504732a 100644 --- a/gallery_dl/extractor/bluesky.py +++ b/gallery_dl/extractor/bluesky.py @@ -13,7 +13,7 @@ from ..cache import cache, memcache 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/([^/?#]+)" diff --git a/test/results/bluesky.py b/test/results/bluesky.py index 7e87eb7968..e2da3c0c70 100644 --- a/test/results/bluesky.py +++ b/test/results/bluesky.py @@ -381,4 +381,16 @@ "#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, +}, + )