]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - src/websites/youporn.rb
Fix all Ruby 1.9 errors and warnings.
[dead/whatever-dl.git] / src / websites / youporn.rb
index 07d7ca022cadeda6f5c5403cfbea96801c2e453e..2c453dd4bef4895bedafe2a0def3c29f8daad717 100644 (file)
 
 require 'src/website'
 
-# Needed to download the page, which is in turn
-# needed because it contains the video URL.
-require 'net/http'
-require 'uri'
-
 
 class Youporn < Website
 
@@ -71,6 +66,7 @@ class Youporn < Website
   def get_headers()
     headers = { 'Referer' => @url,
                 'Content-Type' => 'application/x-www-form-urlencoded' }
+    return headers
   end