Explorar el Código

better way of forcing ipv4 for youtubedl

tags/v1.8.0
Roxie Gibson hace 6 años
padre
commit
82f34fb8b8
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. +1
    -2
      roxbot/cogs/voice.py

+ 1
- 2
roxbot/cogs/voice.py Ver fichero

@@ -50,12 +50,11 @@ ytdl_format_options = {
'quiet': True,
'no_warnings': True,
'default_search': 'auto',
'source_address': '0.0.0.0' # bind to ipv4 since ipv6 addresses cause issues sometimes
}

ffmpeg_options = {
'before_options': '-nostdin',
'options': '-vn -loglevel panic'
'options': '-vn -loglevel panic --force-ipv4'
}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)

Cargando…
Cancelar
Guardar