class Downloader

Base downloader class intherited by SongDownloader and PlaylistDownloader

Constants

MAXIMUM_NUMBER_OF_TRIES
YOUTUBE_BASE_URL
YOUTUBE_HTTPS_URL
YOUTUBE_SEARCH_URL
YOUTUBE_WATCH_URL

Attributes

counter[RW]
name[RW]
settings[RW]
url[RW]

Public Instance Methods

parse_name(title) click to toggle source
# File lib/downloader.rb, line 13
def parse_name(title)
  title = title.slice(0, title.rindex('-')) if title.include? '-'
  title.strip
end