Moode Forum
[SOLVED] moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [SOLVED] moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work (/showthread.php?tid=6770)

Pages: 1 2 3 4 5 6 7 8 9 10 11


moOde 9.0.5 and 9.0.7: Adding radio station to playlist does not work - kurt1970 - 08-01-2024

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


RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-01-2024

I ran some quick tests and am not able to repro that issue.
How did you create the custom stations?


RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-01-2024

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.


RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-01-2024

Are there any errors in the moode log for the failure case?

moodeutl -l


RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-01-2024

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?


RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-01-2024

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?


RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-01-2024

(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.


RE: moOde 9.0.5: Adding radio station to playlist does not work - Tim Curtis - 08-01-2024

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.


RE: moOde 9.0.5: Adding radio station to playlist does not work - kurt1970 - 08-01-2024

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.


RE: moOde 9.0.5: Adding radio station to playlist does not work - TheOldPresbyope - 08-01-2024

@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