You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
amarok/amarok/src/scripts/databasescripts/redoPodcasts.rb

18 lines
515 B

#!/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"