diff --git a/constants.py b/constants.py index 0d3d4d8..21bf88a 100644 --- a/constants.py +++ b/constants.py @@ -15,7 +15,7 @@ YTDL_OPTIONS = { "outtmpl": "%(extractor)s-%(id)s-%(title)s.%(ext)s", "quiet": True, "restrictfilenames": True, - "socket_timeout": 10, + "socket_timeout": 15, "source_address": "0.0.0.0", } diff --git a/ytdlp.py b/ytdlp.py index 65299d4..036c885 100644 --- a/ytdlp.py +++ b/ytdlp.py @@ -37,7 +37,8 @@ class YTDLSource(disnake.PCMVolumeTransformer): return cls( disnake.FFmpegPCMAudio( - data["url"] if stream else ytdl.prepare_filename(data), options="-vn" + data["url"] if stream else ytdl.prepare_filename(data), + options="-vn -reconnect 1", ), data=data, )