Thank you for your donation!


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


Bulk saving/loading user-defined radio stations
#7
(08-21-2019, 08:28 PM)TheOldPresbyope Wrote: @Im bored

The commandline output from the script is telling me that you have two user-defined radio stations in your moode-sqlite3.db database which don't have the required corresponding .pls file in the /var/lib/mpd/music/RADIO/ directory.

Further, the names of the two stations are names for the stations I created for my example myradios.tar.gz file so would not be expected to be in your database to start with. 

Could it be you tried to run the loadmyradios.py script first? The example file contains all three elements---database entry, .pls file, .jpg files---for each station so it should not have left your system in the state it seems to be in. If you ran it, did the script fail somehow? If so, what was the output?

Regards,
Kent

This are the steps taken:
1. Update to 6.10 via ISO
2. go through and setup manually
3. manually add radio stations and images

Run 
4. git clone https://github.com/TheOldPresbyope/moode...-utils.git
5. cd moode-radio-utils

Run
6. python3 savemyradios.py

7. Download and check myradios.tar.gz inside of that file was two radio stations. (the test ones)

Run 
8. sudo python3 loadmyradios.py (to test to see if the script works)
Yes it worked, it wiped out my radio stations and replaced only with 2 test radio stations.

9. Manually replace my radio stations again 

Run
10. python3 savemyradios.py

And at this point it backs up no radio stations



I attached a list of my radio stations just to show whats currently in there, And that's what I'm trying to backup


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
RE: Bulk saving/loading user-defined radio stations - by Im bored - 08-21-2019, 08:52 PM

Forum Jump: