Commit db2911e

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-11-29 17:14:30
chore(handler): skip download youtube and bilibili links directly
1 parent 0b773fa
Changed files (1)
src/handler.py
@@ -313,7 +313,7 @@ async def handle_social_media(
         if warn_msg:
             await warn_msg.delete()
 
-        if not sent_messages and any(keyword in info["text"] for keyword in ["facebook.com", "threads.com"]):
+        if not sent_messages and any(keyword in info["text"] for keyword in ["facebook.com", "threads.com", "youtube.com", "bilibili.com"]):
             if kwargs.get("show_progress"):
                 warn_msg = await message.reply_text("⚠️该链接不被支持", quote=True)
                 await asyncio.sleep(10)