mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 03:12:53 +00:00
17 lines
515 B
Ruby
17 lines
515 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
query = `dcop amarok collection query "SELECT url FROM podcastchannels;"`
|
|
print "Grabbing podcast feeds from database...\n"
|
|
|
|
podcasts = query.split("\n")
|
|
|
|
print "Delete all the podcasts from the playlist browser. Once done, press something. Don't screw this up."
|
|
message = gets()
|
|
print "Sure you have removed them?"
|
|
message = gets()
|
|
|
|
podcasts.each do |channel|
|
|
print "Adding podcast: #{channel}\n"
|
|
system("dcop", "amarok", "playlistbrowser", "addPodcast", channel)
|
|
end
|
|
print "Done.\n"
|