View Single Post
Posts: 8 | Thanked: 22 times | Joined on Jan 2010
#6
Originally Posted by juahan View Post
I searched the whole file system trying to find the playlists or internet radio station lists, but no luck. I tried to be pretty thorough, with multiple search words. There is only list of default internet radio stations (in .xml), but I checked that it doesn't correspond to the current modified list.

Now I started thinking that maybe the internet radio list is in sqlite database. Could it be? My skills are not enough for searching the database, so maybe someone could do some searching. For example, if it is possible, maybe add a new internet radio station and then search the sqlite database with some string corresponding to the addition.
You are right about the database. The stations are saved into .mafw.db sqlite3 database in /home/user/ directory.

The database has only one table 'iradiobookmarks' with 3 fields 'id', 'key', 'value'. The 'id' is not unique and the key is one of 'title', 'uri', 'mime-type'. The value is a data blob which contains the data which describe the key. One radio has at least 3 entries in the database with the same id but with different key types. So at least 'title', 'uri' and 'mime-type' should be present.

Actually is less complicated than it sounds. I coded last night a proof of concept python script to edit the database to add greek stations in a automated manner. I will clean up the code and release it as a greek radios package.
 

The Following 2 Users Say Thank You to seadog For This Useful Post: