]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - bin/whatever-dl
Fixed a bug in the Youtube class' parsing of the "t" parameter.
[dead/whatever-dl.git] / bin / whatever-dl
index cde9e4dbbaaac2e3eb25790a2767d1c4d59d3c2c..47253f13d8bd00eace1ccca43e69592de5948411 100755 (executable)
@@ -102,11 +102,12 @@ if (__FILE__ == $0) then
   # Attempt to download the file, and rescue and report
   # any (predictable) exceptions.
   begin
+    puts "Fetching #{video_url}"
     uu.download_with_progress_bar(video_uri, outfile_name)
   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}."