fix
This commit is contained in:
@@ -3,6 +3,8 @@ services:
|
||||
build: .
|
||||
container_name: navidrome_bot
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway" # <--- Указываем путь наружу
|
||||
environment:
|
||||
- TG_BOT_TOKEN=8849605262:AAGMJWr-02uaFI-cD4UBxg1pSB0swDH_dUc
|
||||
- ADMIN_ID=812709121
|
||||
|
||||
@@ -22,7 +22,11 @@ def download_youtube(url: str):
|
||||
}],
|
||||
'outtmpl': f'{MUSIC_DIR}/Youtube/%(uploader)s/%(title)s.%(ext)s',
|
||||
'noplaylist': False,
|
||||
'quiet': False
|
||||
'quiet': False,
|
||||
# --- НОВЫЕ НАСТРОЙКИ ---
|
||||
'proxy': 'socks5://host.docker.internal:1080', # Идем через Германию
|
||||
'socket_timeout': 30, # Даем больше времени на ответ
|
||||
'source_address': '0.0.0.0', # Отключаем IPv6
|
||||
}
|
||||
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
||||
ydl.download([url])
|
||||
|
||||
Reference in New Issue
Block a user