diff --git a/bot.py b/bot.py index 2af9062..dbba59d 100644 --- a/bot.py +++ b/bot.py @@ -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