refactor: tweak network options

This commit is contained in:
Ryan 2024-12-30 04:09:15 -05:00
parent 9959bd3300
commit cc0a66c3c4
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,7 @@ YTDL_OPTIONS = {
"outtmpl": "%(extractor)s-%(id)s-%(title)s.%(ext)s", "outtmpl": "%(extractor)s-%(id)s-%(title)s.%(ext)s",
"quiet": True, "quiet": True,
"restrictfilenames": True, "restrictfilenames": True,
"socket_timeout": 10, "socket_timeout": 15,
"source_address": "0.0.0.0", "source_address": "0.0.0.0",
} }

View File

@ -37,7 +37,8 @@ class YTDLSource(disnake.PCMVolumeTransformer):
return cls( return cls(
disnake.FFmpegPCMAudio( 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, data=data,
) )