Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working) (Read 913 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Hi!

I have an issue regarding my plugin foo_partyshuffle.

This plugin allows to enable "Party mode": it is adding random tracks to the current playlist when the last track has just finished playing so the next track will continue playing immediately. This worked well until v1.4.

Since v1.4.1 it stopped working. After finishing playing the last song in the playlist it adds 10 new songs but it starts playing the first song in the playlist. It does not continue playing new added songs.

Could you please describe is there any breaking changes in API related to this functionality in 1.4.1?

And could you please quickly review plugin source code (it is small), maybe you will find anything which may cause this issue?

Thank you in advance.

Re: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Reply #1
There was a code behavior change in 1.4.1: "Pressing “next” past the end of playlist now restarts the playlist even without “repeat” mode."
You can manually start playing the correct track you want with call to playlist_execute_default_action().
PS: you should change your random number generator. Now your party shuffle will never pick from all tracks for people who have over 32K tracks in their library.

Re: Help indentify problem (since v1.4.1 foo_partyshuffle plugin stopped working)

Reply #2
There was a code behavior change in 1.4.1: "Pressing “next” past the end of playlist now restarts the playlist even without “repeat” mode."
You can manually start playing the correct track you want with call to playlist_execute_default_action().
PS: you should change your random number generator. Now your party shuffle will never pick from all tracks for people who have over 32K tracks in their library.

Thank you for the answer. I will try to fix it.