Update admin bot token, refine VK and Yapfiles URL handling, enhance Docker configuration for Instagram downloader, and improve YouTube downloader's cookie validation and error messaging.

This commit is contained in:
vrubelroman 2026-01-10 21:40:07 +00:00
parent 5c8456de96
commit 551b64777a
10 changed files with 522 additions and 1083 deletions

View file

@ -119,7 +119,7 @@ def download():
logger.info(f"Получен запрос на скачивание: {url}")
# Проверяем, что это VK URL
if 'vk.com' not in url and 'vk.ru' not in url and 'vkontakte.ru' not in url:
if 'vk.com' not in url and 'vkontakte.ru' not in url:
return jsonify({'error': 'Only VK URLs are supported'}), 400
# Скачиваем видео
@ -151,7 +151,7 @@ def download_stream():
logger.info(f"Получен запрос на скачивание (stream): {url}")
# Проверяем, что это VK URL
if 'vk.com' not in url and 'vk.ru' not in url and 'vkontakte.ru' not in url:
if 'vk.com' not in url and 'vkontakte.ru' not in url:
return jsonify({'error': 'Only VK URLs are supported'}), 400
# Скачиваем видео