Sha256: 94a62ea51ed2f830cd44aaf4ca4166edbd496745750a8bb73dcaae76195ee88c
Contents?: true
Size: 280 Bytes
Versions: 2
Compression:
Stored size: 280 Bytes
Contents
require 'open-uri' require 'nokogiri' module LyricFind class API def instrumental? artist, song_name doc = get_search_api_response artist, song_name return nil if doc.nil? return doc.xpath('//tracks/track')[0]['instrumental'] == 'true' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
LyricFind-0.1.5 | lib/lyricfind/instrumental.rb |
LyricFind-0.1.4 | lib/lyricfind/instrumental.rb |