From 32a1277225f7b5841ee89aeeda55d750a6c6c4c8 Mon Sep 17 00:00:00 2001 From: polynoman Date: Wed, 27 Oct 2021 22:53:13 +0200 Subject: [PATCH] Add option to prevent interrupt during playback --- src/bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bot.py b/src/bot.py index 12d9a40..532fabd 100644 --- a/src/bot.py +++ b/src/bot.py @@ -45,6 +45,7 @@ class Music(commands.Cog): 'source_address': '0.0.0.0' # bind to ipv4 since ipv6 addresses cause issues sometimes } self._ffmpeg_options = { + 'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn' } self._ytdl = youtube_dl.YoutubeDL(self._ytdl_params)