Class: DeadList

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

Overview

Main DeadList class.

Constant Summary collapse

HOSTNAME =
'https://www.archive.org/'

Instance Method Summary collapse

Constructor Details

#initializeDeadList

Returns a new instance of DeadList.



12
13
14
15
# File 'lib/deadlist.rb', line 12

def initialize
    @current_version = '1.0.0'
    @hostname = HOSTNAME
end

Instance Method Details

#runObject



17
18
19
20
21
22
23
24
25
26
27
# File 'lib/deadlist.rb', line 17

def run        
    # Start a new CLI session
    # In future this could be abstracted to pass the show link vs all args, so a 'session' is started per show.
    session = CLI.new(@current_version, ARGV)

    # Scrape links and metadata for given show
    session.scrape_links

    # Create folder with show date and begin track downloads if format matches
    session.download_show
end