Fix yt-dlp title error, and inline title
This commit is contained in:
@@ -214,7 +214,15 @@ async def callback_handler(client: Client, callback_query: CallbackQuery):
|
||||
|
||||
elif data.startswith("video_select:"):
|
||||
# Handle video selection from webpage
|
||||
video_url = data.replace("video_select:", "", 1)
|
||||
selection_id = data.replace("video_select:", "", 1)
|
||||
|
||||
# Retrieve video URL from cache using short identifier
|
||||
from bot.modules.message_handler.video_selection_cache import get_video_selection
|
||||
video_url = get_video_selection(selection_id, user_id=user_id)
|
||||
|
||||
if not video_url:
|
||||
await callback_query.answer("❌ Ссылка истекла или не найдена. Пожалуйста, попробуйте снова.", show_alert=True)
|
||||
return
|
||||
|
||||
# Create task for selected video
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user