Thank you for your donation!


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


Modified Radio Station backup option.
#1
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.
----------------
Robert
Reply
#2
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/bl...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.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Maybe excluding the monitor would be enough. I'll have a play with the "recreating as user" method, see if that works.
----------------
Robert
Reply


Forum Jump: