Vk parser basic structure
This commit is contained in:
parent
9cbc3d1400
commit
3215a40e0f
|
@ -2,7 +2,7 @@ class TrackController < ApplicationController
|
|||
require 'net/http'
|
||||
require 'uri'
|
||||
def listen
|
||||
pp VK_ACCOUNTS
|
||||
render :json => YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
module Vkontakte
|
||||
@@accounts = YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")
|
||||
|
||||
def get artist, track, length
|
||||
|
||||
end
|
||||
|
||||
def getHtml q
|
||||
|
||||
end
|
||||
|
||||
def parseHtml html
|
||||
|
||||
end
|
||||
|
||||
def calcWeight files
|
||||
|
||||
end
|
||||
end
|
|
@ -1 +0,0 @@
|
|||
VK_ACCOUNTS = YAML.load_file("#{RAILS_ROOT}/config/vk_accounts.yml")[RAILS_ENV]
|
Loading…
Reference in New Issue