2011-06-14 20:01:42 +00:00
|
|
|
require 'uri'
|
|
|
|
require 'open-uri'
|
2011-06-14 16:05:12 +00:00
|
|
|
namespace :db do
|
2011-06-17 21:49:32 +00:00
|
|
|
desc 'Imports test data from MusicBrainz database'
|
2011-06-14 16:05:12 +00:00
|
|
|
task :import => :environment do
|
2011-06-24 09:36:44 +00:00
|
|
|
|
2011-06-26 05:25:30 +00:00
|
|
|
ati = ['Weezer']
|
2011-06-14 18:06:46 +00:00
|
|
|
ati.each do |name|
|
2011-06-14 21:29:36 +00:00
|
|
|
ImportController.importArtist(name)
|
2011-06-18 15:58:51 +00:00
|
|
|
#ap res = ArtistController.musicBrainzExactSearch(name)
|
2011-06-14 18:06:46 +00:00
|
|
|
end
|
2011-06-14 16:05:12 +00:00
|
|
|
end
|
|
|
|
end
|