Commit 838c7a7
Changed files (1)
src
ytdlp
src/ytdlp/main.py
@@ -19,7 +19,7 @@ from messages.database import copy_messages_from_db, save_messages
from messages.preprocess import preprocess_media
from messages.progress import modify_progress, telegram_uploading
from messages.sender import send2tg
-from messages.utils import count_without_entities, get_reply_to, smart_split
+from messages.utils import better_blockquote, count_without_entities, get_reply_to, smart_split
from multimedia import convert_to_h264
from preview.bilibili import get_bilibili_comments, get_bilibili_vinfo, make_bvid_clickable
from preview.youtube import get_youtube_comments, get_youtube_vinfo
@@ -320,7 +320,7 @@ async def send_media(
video_messages.append(
await client.send_video(
chat_id=to_int(video_target),
- caption=caption,
+ caption=better_blockquote(caption),
reply_parameters=reply_parameters,
progress=telegram_uploading,
progress_args=(kwargs.get("progress", False), video["video"], true(kwargs.get("detail_progress"))), # message, path, detail_progress
@@ -334,7 +334,7 @@ async def send_media(
audio_message = await client.send_audio(
chat_id=to_int(audio_target),
audio=audio_path.as_posix(),
- caption=caption,
+ caption=better_blockquote(caption),
performer=info["author"],
title=info["title"],
duration=round(float(info.get("duration", "0"))),