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
#1
Hi,

I added some custom radio stations and tried to add them to a new or existing playlist from within the Radio view.

When adding it, it shows the message "Updating Playlist", but it doesn't get added to it.

Can you please have a look?

Tx,
Kurt
Reply
#2
I ran some quick tests and am not able to repro that issue.
How did you create the custom stations?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
I did some further investigations

I've 2 instances both running 9.0.5. One was migrated from 9.0.3 > 9.0.4 > 9.0.5. This one is causing the issue. The other instance working fine, I migrated from 9.0.3 > 9.0.5.

I created the radio stations in the Radio view, the normal way. I can't add already existing radio stations to a playlist either.

Creating a new playlist and adding whatever radio station doesn't work either.

On the working instance I've 2 messages: 1) "Updating Playlist" and 2) "Items have been added".
On the non working instane, I only see "Updating Playlist".

What works is: I clear the Q, add the Radio station to the Q, save the Q to a Playlist.
Reply
#4
Are there any errors in the moode log for the failure case?

moodeutl -l
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#5
No errors via moodeutl...

I just noticed that it is add-hoc.
1) I add a station and see the 2 messages > Playlist updated
2) I remove the station from the playlist
3) I add the station again and see only 1 message. Playlist not updated
4) I add another station and see only 1 message. Playlist not updated
5) do this a couple of times, and sometimes it works.

Even simpler...
1) I add the station and see only 1 message. Playlist not updated
2) Immediately after, I retry and add the same station and see the 2 messages > Playlist updated

Also tried this, but no improvement
sudo service mpd stop
sudo rm /var/lib/mpd/database
sudo service mpd start
mpc rescan

Playlists are not corrupt, as I exported them to the working instance.

Looks like a DB issue?
Reply
#6
Are you adding to an existing playlist or are you doing an add + New playlist which creates a new playlist file then adds the item?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
(08-01-2024, 04:15 PM)Tim Curtis Wrote: Are you adding to an existing playlist or are you doing an add + New playlist which creates a new playlist file then adds the item?

Same outcome.

If I add the station, and ask to add it to a new playlist, give the name of the playlist, it says "Updating Playlist", but nothing happens and the new playlist is not created."

It looks like after the message "Updating Playlist" is displayed something goes wrong, as the next message "Items have been added" isn't displayed when it doesn't work.

But again, it isn't consistent. I just managed to add 1 station to a playlist, but when I try to add a second, third, ... station to the same list it fails.. Adding to another list doesn't work either.
Reply
#8
I'm not able to repro the "Playlist not updated" issue. That message comes from only one place in the code and the full notification is:

Name or URL is blank.
Playlist not updated.

Couple things:
1. Do you have the "Worker response" option in System Config set to "Boosted?
2. What model Pi?

Also, I did find a bug in the code that creates a new playlist at the time an item is added. The bug prevents the two default EXTINF metadata tags from being written to the file. This results in the next item added to the file overwriting the initial item. From then on the tags will be there and added items will be correctly appended. The bug is fixed for upcoming 9.0.6 release.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
To exclude my mistakes in the station definition, I also have it with the stations part of the moOde distribution.

The 2 instances are both, PI4B, booting from a SSD, connected via USB to a DAC, using the same initial image (9.0.3), and having both the Worker Response set to Boosted. In addition, both instances have exactly the same config wrt radio stations, playlists, and read from the same NAS. So, the music lib is the same as well. As said, I've exported the config of the non working instance to the other instance, and there everything goes fine.

Only difference is that I upgraded the mal-functioning instance from 9.0.3 > 9.0.4. > 9.0.5, whereas I upgraded the working instance from 9.0.3 > 9.0.5 in 1 go.

Btw, the 2 messages are: 1) "Updating Playlist" and 2) "Items have been added". When it fails, I don't get the second message.
Reply
#10
@kurt1970

I’m curious. Do you see this behavior when you add recorded tracks rather than radio stations?

The closest I can come to your configuration is a moOde 9.0.5 player which was updated from a 9.0.4 install. I’m seeing the bug @Tim Curtis discribed but not your problem.

Regards,
Kent
Reply


Forum Jump: