Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
08-01-2024, 11:29 AM
(This post was last modified: 08-15-2024, 06:33 PM by kurt1970.)
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
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
I ran some quick tests and am not able to repro that issue.
How did you create the custom stations?
Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
08-01-2024, 12:46 PM
(This post was last modified: 08-01-2024, 01:05 PM by kurt1970.)
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.
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
Are there any errors in the moode log for the failure case?
moodeutl -l
Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
08-01-2024, 02:51 PM
(This post was last modified: 08-01-2024, 03:24 PM by kurt1970.)
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?
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
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?
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
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.
Posts: 179
Threads: 8
Joined: Sep 2023
Reputation:
0
08-01-2024, 06:37 PM
(This post was last modified: 08-01-2024, 06:39 PM by kurt1970.)
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.