Vkontakte html & parse
This commit is contained in:
@@ -8,6 +8,7 @@ class ArtistController < ApplicationController
|
||||
name = params[:name].gsub('+', ' ').gsub('%20', ' ')
|
||||
end
|
||||
@artist = Artist.getByName(name)
|
||||
pp @artist
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -2,6 +2,12 @@ class TrackController < ApplicationController
|
||||
require 'net/http'
|
||||
require 'uri'
|
||||
def listen
|
||||
artist = 'The White Stripes'
|
||||
track = 'Blue Orchid'
|
||||
length = 157
|
||||
|
||||
Vkontakte.get(artist, track, length)
|
||||
|
||||
render :json => 0
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user