X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Fwhatever-dl%2Fdownloader.rb;h=c21cccd8c448414d1e0ce4250ff2b3f78a790191;hb=HEAD;hp=b9921e8ead9a999412d2061098c473afc834ebfc;hpb=6de408333ceb0d142f8fa0fef2571228e89c8fc1;p=dead%2Fwhatever-dl.git diff --git a/lib/whatever-dl/downloader.rb b/lib/whatever-dl/downloader.rb index b9921e8..c21cccd 100644 --- a/lib/whatever-dl/downloader.rb +++ b/lib/whatever-dl/downloader.rb @@ -21,22 +21,22 @@ class Downloader def self.create(download_method) # Return the subclass corresponding to download_method. case download_method - when :openuri + when 'openuri' return OpenUriDownloader.new() - when :wget + when 'wget' return WgetDownloader.new() end end - + # Abstract def download(url, outfile, headers = {}, continue = false) raise NotImplementedError end - + end # This is wacky, but seems to work. -require 'src/wget_downloader' -require 'src/open_uri_downloader' +require 'whatever-dl/wget_downloader' +require 'whatever-dl/open_uri_downloader'