LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-24-2009, 05:46 PM   #1
LinuxD
LQ Newbie
 
Registered: Jun 2008
Distribution: Sabayon
Posts: 1

Rep: Reputation: 0
Exporting Amarok podcast URLs


I built a new computer and I am upgrading Slackware versions (including going from 32-bit to 64 bit) and needed a way to bring over my Amarok podcast URLs to the new machine. I am running 1.4.10 (KDE 3.5.10) on my old system.

I searched the web looking for the answer on how to get the urls. I figured that I would just past the urls into the new Amarok under the new installation.

Here is what I did to get the URLs out of Amarok.

This version of Amarok stores its data in a sqlite database named 'collections.db' found in ~/.kde/share/apps/amarok/
[note that '~' means your home directory].

I found that I had sqlite3 installed on my Slackware 12.x installation. I searched for the commands to extract the data from the database. I made a copy of the collections.db file so that I didn't run the risk of breaking anything.

I then queried the database to find out which tables were available:
$ sqlite3 collection.db ".table"
admin directories playlists tags
album embed podcastchannels tags_labels
amazon genre podcastepisodes uniqueid
artist images podcastfolders year
composer labels related_artists
devices lyrics statistics

I then queried the podcastchannels table to see what columns it had:
$ sqlite3 collection.db ".schema podcastchannels";

CREATE TABLE podcastchannels (url VARCHAR(1024) UNIQUE,title VARCHAR(255),weblink VARCHAR(1024),image VARCHAR(1024),comment TEXT,copyright VARCHAR(255),parent INTEGER,directory VARCHAR(255),autoscan BOOL, fetchtype INTEGER, autotransfer BOOL, haspurge BOOL, purgecount INTEGER );
CREATE INDEX url_podchannel ON podcastchannels( url );

I then queried for the podcast title and URL:

$ sqlite3 collection.db "select title, url from podcastchannels";

The lottalinuxlinks linux podcast ogg feed|http://lottalinuxlinks.com/podcast/ogg.xml
Nikonians Podcasts :: For the ambitious photographer and imaging professional.|http://podcasts.nikonians.org/index.xml
Slashdot Review - Produced by SDR News|http://slashdotreview.com/wp-rss2.php
...

Note that the fields are pipe-delimited ('|').

Then I queried just for the just the URL:
$ sqlite3 collection.db "select url from podcastchannels";

http://lottalinuxlinks.com/podcast/ogg.xml
http://podcasts.nikonians.org/index.xml
http://slashdotreview.com/wp-rss2.php
...

That was all I needed.

I will keep a copy of this database just in case I need anything else.

It took me a bit of searching around to figuring out how to do this, so I wanted to post this message to save someone else the headache.

BTW: this is my first post to LQ.

- LinuxD
 
Old 10-26-2009, 03:35 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Thanks for sharing, and welcome to LQ forums.
 
Old 12-07-2009, 01:21 AM   #3
amanica
LQ Newbie
 
Registered: Dec 2009
Location: Roodepoort, South-Africa
Distribution: Kubuntu 9.10
Posts: 2

Rep: Reputation: 0
Smile awesome

that worked perfectly, thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amarok Podcast Problem - Overwriting old downloads jtser Linux - Software 1 05-11-2007 03:01 AM
Amarok podcast tease? minchina Linux - Software 2 09-29-2006 02:24 PM
Managing PodCast Subscriptions With amaroK edwin11 Linux - Software 1 09-26-2006 08:34 AM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 09:48 PM
exporting one NFS folder to another NFS and exporting it.... stellarmarine1 Linux - Networking 3 09-20-2004 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration