class Mixtape::Source::Yvynyl

Private Instance Methods

songs_for_page_id(page_number) click to toggle source
# File lib/mixtape/source/yvynyl.rb, line 6
def songs_for_page_id(page_number)
  page_info = Mixtape::MusicBlogInfo.new(
    url: 'http://yvynyl.com',
    tracks_subpath: "/page"
  )
  page_info.tracks(
    page_id: page_number,
    css_query: '.article-content .caption p:first-child'
  ).select{ |track| track.include? "-" }
end