song folder n name fix.

This commit is contained in:
thedragonsinn
2024-03-06 17:48:09 +05:30
parent e4e364da0e
commit 5d99980b05

View File

@@ -77,7 +77,7 @@ async def song_dl(bot: bot, message: Message) -> None | Message:
async def get_download_info(query: str, path: str, audio_format: str) -> dict | None:
yt_opts = {
"logger": FakeLogger(),
"outtmpl": path + "%(title)s.%(ext)s",
"outtmpl": os.path.join(path + "%(title)s.%(ext)s"),
"format": "bestaudio",
"postprocessors": [
{"key": "FFmpegExtractAudio", "preferredcodec": audio_format},