Class: LyricDownload

Inherits:
Object
  • Object
show all
Defined in:
lib/lyrics_ebook/lyric_download.rb

Instance Method Summary collapse

Instance Method Details

#download(lyric) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/lyrics_ebook/lyric_download.rb', line 39

def download(lyric)
 @app = Application.new true, true, false
  begin
    text=@app.process(lyric.artist,lyric.title, nil, nil )
    lyric.text=text if text
    !text.nil?
  ensure
   @app.finalize()
  end
end