aquelemiguel / parrot

🦜 A hassle-free, highly performant, self-hosted Discord music bot with YouTube and Spotify support. Powered by yt-dlp.
MIT License
136 stars 44 forks source link

Randomly skipping and repeating songs #241

Open LiftedStarfish opened 1 year ago

LiftedStarfish commented 1 year ago

📝 Description

Sometimes, when switching to the next song in the queue, the app instead decides to replay the previous song. The queue thinks its playing the song that's in the queue, but the audio is just a repeat of the previous song. As a result, it ends up skipping the song that's actually in that position in the queue.

🪜 Reproduction Steps

I have not been able to find a way to reliably replicate this behavior. What I can say is that it's not caused by the queued song being unable to play, because if I queue the song again, it will play.

ℹ Environment / Computer Info

📸 Screenshots

No response

aquelemiguel commented 1 year ago

Hi, @LiftedStarfish!

Good to have you back.

Do you think this Songbird issue could be related? It does seem awfully similar. They're on Songbird 0.3.2 as well.

LiftedStarfish commented 1 year ago

Yes, this sounds like it could be related. Just to be clear, in this case, the current track does not stop playing. It's just that when the next track goes to play, it just replays the previous track, before continuing on with the track after it.

For example, if the queue looks like this:

When the bug occurs, it will play like this:

aquelemiguel commented 1 year ago

Understood, I'll try to replicate on my side when I get the chance and keep a close eye on Songbird's issue. Thank you again for reporting this. ⭐️

phoxwupsh commented 1 year ago

@aquelemiguel it seems like this is caused by yt-dlp. I update my yt-dlp version to 2023.04.27.022240, and the problem is solved, maybe you can give it a try!