Commit 1ab5ab4
Changed files (1)
src/networking.py
@@ -472,6 +472,9 @@ async def flatten_rediercts(
# t.co
if matched := re.search(r"(https?://)?t\.co/([^.。,,?&/\s]+)", texts):
url = matched.group(0)
+ # mapp.api.weibo.cn
+ if matched := re.search(r"(https?://)?mapp\.api\.weibo\.cn/fx/([0-9a-zA-Z]+)\.html", texts):
+ url = matched.group(0)
# t.cn
if matched := re.search(r"(https?://)?t\.cn/([^.。,,?&/\s]+)", texts):
url = matched.group(0)
@@ -535,6 +538,7 @@ if __name__ == "__main__":
print(asyncio.run(match_social_media_link("https://github.com/yt-dlp/yt-dlp/issues/14404#issuecomment-3323873708")))
print(asyncio.run(match_social_media_link("https://github.com/yt-dlp/yt-dlp/pull/14467")))
print(asyncio.run(match_social_media_link("https://github.com/yt-dlp/yt-dlp/pull/14417#issuecomment-3327344721")))
+ print(asyncio.run(match_social_media_link("https://mapp.api.weibo.cn/fx/09ab955a1e0d406c9d6a74f5a2242b4a.html")))
# print(asyncio.run(match_social_media_link("https://www.bilibili.com/video/BV1TC411J7PK")))
# print(asyncio.run(match_social_media_link("https://www.bilibili.com/BV1TC411J7PK")))