Browse Source

better way of forcing ipv4 for youtubedl

tags/v1.8.0
Roxie Gibson 6 years ago
parent
commit
82f34fb8b8
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      roxbot/cogs/voice.py

+ 1
- 2
roxbot/cogs/voice.py View File

@@ -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)

Loading…
Cancel
Save