The image shows the default RadioTray radio stations imported into Rhythmbox
How did I do that?
RadioTray holds its radio-stations in an XML file located in:
Rhythmbox holds all of its data similarly in an XML file located in:
If you examine both files its pretty obvious that the XML format (its defined structure) is very different.
One solution is to transform the Radiotray XML format to something that Rhythmbox can understand.
You can use the structured XML translation language XSLT to perform this conversion.
sudo apt-get install python-4suite-xml
Next copy the contents below into a new
Save in a file (create the folder
xml if necessary) called
Next, copy the RadioTray XML file to the same folder
Finally, copy the Rhythmbox XML file to the same folder
Drop to a terminal:
4xslt bookmarks.xml style > test.xml
This will reformat the RadioTray into the XML that can be read by RhythmBox
Next we need to add this new data to Rhythmbox.
Now open both
Copy the contents of
test.xml EXCEPT for the first line into the
rhythmdb.xml file. Note - you paste the contents at the end of the file i.e.
*****paste test.xml here*****
Backup the old
rhythmdb.xml file and then copy over the new
Fire up Rhythmbox
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">