Merge branch 'fix_song_interrupt' into 'develop'

Add option to prevent interrupt during playback

Closes #13

See merge request ekzyis/musicube!19
This commit is contained in:
Ramdip Gill 2021-11-03 23:05:00 +00:00
commit 6c3d7434f8
1 changed files with 1 additions and 0 deletions

View File

@ -45,6 +45,7 @@ class Music(commands.Cog):
'source_address': '0.0.0.0' # bind to ipv4 since ipv6 addresses cause issues sometimes 'source_address': '0.0.0.0' # bind to ipv4 since ipv6 addresses cause issues sometimes
} }
self._ffmpeg_options = { self._ffmpeg_options = {
'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
'options': '-vn' 'options': '-vn'
} }
self._ytdl = youtube_dl.YoutubeDL(self._ytdl_params) self._ytdl = youtube_dl.YoutubeDL(self._ytdl_params)