Moode Forum
Modified Radio Station backup option. - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8)
+--- Thread: Modified Radio Station backup option. (/showthread.php?tid=7039)



Modified Radio Station backup option. - the_bertrum - 10-28-2024

If moOde stations that have been modified (that is, the monitor turned on, or any other change like logos or what ever) can be captured by a modified flag then an option to backup both added and modified stations could be included.  This would then allow a simpler restore of these modifications after an upgrade.

At the moment, an upgrade sets all the moOde stations to defaults so you lose the monitor setting or any other customisations to them.  Backup and restore of the moOde stations across upgrades risks breakage (if a station name changes, or worse its position in the table moves) so presently the procedure I use is to upgrade all my players, restore the added stations to one instance, edit the moOde stations to put the monitor back and change a couple of logos, then back up the moOde stations from that instance and restore them to my other players.

I suspect there would need to be some "magic" if a modified station was also one that changes in the upgrade.  Perhaps just a message saying "station x upgrade by moOde, customisations not restored" or what have you.

A small thing in the scheme of things (although maybe not so small in coding hours), but I'd find it useful so present it for consideration.

Thanks.


RE: Modified Radio Station backup option. - Tim Curtis - 10-28-2024

IIRC the "Station type" field is the only field excluded when moode stations are installed via in-place update or a restore so that favorites are maintained. The monitor field could prolly be added to the exclude list. 

ETA: Here is the program (station_manager.py) that would need to be modified
https://github.com/moode-player/moode/blob/develop/www/util/station_manager.py

The other fields including the station cover image are meant to be a fixed part of the station database and only updated as part of commits to the repo.

One option for maintaining local changes to moode stations might be to  set the particular stations to type = hidden and then create new stations with all the local changes. These would be in the "other stations" part of the database and thus not part of installing or restoring the "moode stations". I haven't tested this.


RE: Modified Radio Station backup option. - the_bertrum - 10-28-2024

Maybe excluding the monitor would be enough. I'll have a play with the "recreating as user" method, see if that works.