X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Fwhatever-dl%2Fdownloader.rb;h=c21cccd8c448414d1e0ce4250ff2b3f78a790191;hb=HEAD;hp=85cc4e32a9a9fcea87dc7f8b0be6534179feb9a9;hpb=2e77ebd6945c8c681fe2c4ab04e1ec50eabd2f5c;p=dead%2Fwhatever-dl.git diff --git a/lib/whatever-dl/downloader.rb b/lib/whatever-dl/downloader.rb index 85cc4e3..c21cccd 100644 --- a/lib/whatever-dl/downloader.rb +++ b/lib/whatever-dl/downloader.rb @@ -21,19 +21,19 @@ 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