1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-07-06 17:28:34 +02:00

fixed wrong filename in playerQue

This commit is contained in:
Jonas Leder 2020-04-10 21:04:16 +02:00
parent f0ec1426f4
commit 6967b44f0c

2
bot.py
View file

@ -482,7 +482,7 @@ def backgroundDownloader(downloadQue):
fileIndex = fileIndex + 1 #add 1 to the file index counter (used to find the mp3 files easy later and that there are no files with the same name)
with YoutubeDL(ydl_opts) as ydl:#download the song with the arguments from up
ydl.download([downloadQue[0]])
playerQue.append(str(fileIndex) + ".mp3")#add the file to the que
playerQue.append(str(fileIndex - 1) + ".mp3")#add the file to the que
titleQue.append(downloadQue[1])#add the title to the que (for que list)
bot.loop.create_task(checkForNextSong())#start the music bot tasks in background