Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a list of radio stations that I am interested in importing to Banshee. After I add more stations before next upgrade I would like to keep that list somewhere, so it can be imported into Banshee after system upgrade. Is there a way to do it easily? Any hints to where and how Banshee handles this list internally would be appreciated. Thanks!

share|improve this question
    
So you already have the list of stations? Or when you upgrade, you want to export a list of your radio stations so that you can import it into a new Banshee installation? –  michaelms Jun 14 '11 at 14:09
    
I tried looking in /usr/share/banshee, but didn't see anything in there that looked useful. According to the Banshee FAQ, Banshee stores some of its data in the ~/.config/banshee-1/banshee.db SQLite 3 database, but I have zero experience working with those. –  WarriorIng64 Jun 14 '11 at 20:45
    
@WarriorIng64: Yes, all the library data and additional meta data (play count, ...) is stored in this file. But it is NOT a good idea to edit this database manually or run "self-made" SQL commands on it as there are multiple relations to other tables in the database. –  dAnjou Jun 14 '11 at 22:57
    
@MichaelMS: Yes, exactly that's my point. –  Avetik Topchyan Jun 17 '11 at 3:38
add comment

1 Answer

I think this is not a quite useful answer for you, I'll rather show you or some nice person with time and ambition a way to go.

Because I didn't find an existing possibilty to get what you want (and I think there really is none), I believe the easiest way would be to write a tiny tiny extension. And this really doesn't seem very hard because the code exists already in other extensions.
For example Radio Station Fetcher: it just searches for radio stations on some websites and adds them to your radio "playlist". Therefore it uses a single dialog with two buttons (one for genre search and one for free text search) and that's all (you can try it yourself by installing banshee-extension-radiostationfetcher; you can find it then in the "Tools" menu).
I looked at the code and all one have to do is replace the code for searching stations on those website with code that reads your list of stations. All the other code can almost stay the same. I would do it, but I don't have time.
You can find the code of all extensions here. Live Radio has the same functionality of adding a list of stations to your radio "playlist" but I think it has a bigger codebase to look through.

I hope that will help you or some kind person who will do the work for you :P

share|improve this answer
    
thanks for the hint... I'll explore the code... –  Avetik Topchyan Jun 15 '11 at 13:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.