]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - bin/whatever-dl
Added the ability to download Youtube videos.
[dead/whatever-dl.git] / bin / whatever-dl
index cde9e4dbbaaac2e3eb25790a2767d1c4d59d3c2c..970e0e09eb809097d83059ee615c3dfadcbfa039 100755 (executable)
@@ -106,7 +106,7 @@ if (__FILE__ == $0) then
   rescue Errno::ECONNREFUSED => e
     puts 'The connection to the server (to download the video file) was refused. Check your connection, and try again later.'
     Kernel.exit(EXIT_CONNECTION_REFUSED)
-  rescue Errno:EACCES => e
+  rescue Errno::EACCES => e
     puts "Access denied. Check that you have write permission to the output file/directory. Details: #{e.message}."
   rescue OpenURI::HTTPError => e
     puts "An HTTP error occurred while downloading the video file: #{e.message}."