refactor: tweak network options
This commit is contained in:
parent
9959bd3300
commit
cc0a66c3c4
@ -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",
|
||||
}
|
||||
|
||||
|
3
ytdlp.py
3
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,
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user