maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Maemo 5] Where are Internet radio stations saved? (https://talk.maemo.org/showthread.php?t=40738)

juahan 2010-01-15 17:44

[Maemo 5] Where are Internet radio stations saved?
 
Does anyone know to which file the Media Player saves the internet radio stations?

I would like to clear away the ones I don't use so that I can find the ones I use better. There is of course this manual one by one way of deleting the stations, but it's too much work.

cenwesi 2010-01-15 18:28

Re: Where are internet radio stations saved?
 
Quote:

Originally Posted by juahan (Post 474520)
Does anyone know to which file the Media Player saves the internet radio stations?

I would like to clear away the ones I don't use so that I can find the ones I use better. There is of course this manual one by one way of deleting the stations, but it's too much work.

Me too.... there are only about 4 stations there i really like BBC being one of them an i listen to them EVERYDAY!!!!.

OrangeBox 2010-01-15 18:32

Re: Were are internet radio stations saved?
 
I have another question: where did the search results come from on the N95 8GB? I had a station that I always listened to that I was able to find only through that search and not via shoutcast.com

Any ideas?

AlexDT 2010-01-15 18:41

Re: [Maemo 5] Where are Internet radio stations saved?
 
I don't know, but it's possible to find your station by typing it's name (if you didn't allready knew). You'll probably find it faster. Good luck.

juahan 2010-01-16 18:30

Re: [Maemo 5] Where are Internet radio stations saved?
 
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.

seadog 2010-01-19 14:57

Re: [Maemo 5] Where are Internet radio stations saved?
 
Quote:

Originally Posted by juahan (Post 476601)
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.

asidana 2010-01-19 15:10

Re: [Maemo 5] Where are Internet radio stations saved?
 
you can also open sqlite dbs from your pc. firefox has an addon

pelago 2010-01-19 15:37

Re: [Maemo 5] Where are Internet radio stations saved?
 
I wonder if, like the Conversations/SMS SQLite database, there is an API provided to best access this database, rather than editing it directly. Does anyone know?

seadog 2010-01-27 21:20

Re: [Maemo 5] Where are Internet radio stations saved?
 
I just posted some detailed info about editing the radio list


enjoy

cardiff-blues 2010-01-27 22:06

Re: [Maemo 5] Where are Internet radio stations saved?
 
How do we use the script? Does it allow us to edit the list?


All times are GMT. The time now is 22:58.

vBulletin® Version 3.8.8