Switched back to ffmepgPCM

This commit is contained in:
Lukas Blacha
2023-02-07 22:31:08 +01:00
parent f6439245c6
commit e770272bc4

View File

@@ -50,7 +50,7 @@ else:
}],
}
ffmpeg_options = {"options": "-vn -threads 2"}
ffmpeg_options = {"options": "-vn"}
ytdl = yt_dlp.YoutubeDL(ytdl_format_options)
@@ -77,7 +77,7 @@ else:
filename = data["url"] if stream else ytdl.prepare_filename(data)
return cls(discord.FFmpegPCMAudio(source=filename, executable="ffmpeg", pipe=False, stderr=False,
before_options=None, options=ffmpeg_options), data=data)
before_options="-threads 4", options=ffmpeg_options), data=data)
intents = discord.Intents.default()
intents.message_content = True