Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work
#31
(08-02-2024, 03:08 PM)kurt1970 Wrote: Did you try multiple times, as sometimes it works, sometimes not. Are you using wireless, as it works wired here.

I've spent my day on it, and the conclusion is that it works perfectly when I start from a fresh image. As from the moment I start restoring artifacts like playlists and radio stations, behavior is unpredictable.

The test I haven't done yet, is just restoring my radio stations and my config and prefs, instead of also restoring the playlists.

Today, I had to retry 7 times before I got the message "Items have been added", which is the proof that it actually happened.
I'm not a PHP guy, but what happens between "Updating Playlist" and the message "Items have been added"? As I don't get the 2nd message in case of failure, it looks like something is breaking the code in between those 2 steps. Also, why does it work when I retry 7 (can be another number as well) times?

I questioned myself why I haven't noticed this earlier? Well, quite simple... When I added radio stations, I added them to the Q containing my playlist of radio stations, and saved the Q to the playlist. This works. And this confirms me it's a software issue.

Yes I tried many times and could not get a failure. Each time I tested I waited for the "Items have been added" message to appear which typically took only 1 or 2 seconds.

The basic transaction flow is:
Client displays notification "Updating Playlist"
Client posts 'add_to_playlist' with data payload to server script /var/www/command/playlist.php
Client waits (asynchronously) for server script to complete
Server script carries out command, exits and returns control to client
Client wait ends, displays "Items have been added" notification

Maybe look at the Browser console when you get a failure case and see of there are errors.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
RE: moOde 9.0.5: Adding radio station to playlist does not work - by Tim Curtis - 08-02-2024, 03:54 PM

Forum Jump: