]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - src/websites/efukt.rb
Fix all Ruby 1.9 errors and warnings.
[dead/whatever-dl.git] / src / websites / efukt.rb
index 0a1e10e8dad9ea50c3a7a35ae87d8d51d1c9a6cd..0818eacb9d24c79f98138c9ca9a98c339686eb8d 100644 (file)
@@ -49,7 +49,7 @@ class Efukt < Website
     matches = filename_regex.match(@url)
 
     # Overwrite the default if our regex worked.
-    filename = matches[1] if not (matches.nil? || matches.length < 1)
+    filename = matches[1] if not matches.nil? || matches.length < 1
 
     return (filename + '.flv')
   end
@@ -63,7 +63,7 @@ class Efukt < Website
     video_url_regex = /flashvars\.file = "(http:\/\/.*\.flv)"/i
     matches = video_url_regex.match(page_data)
 
-    if not (matches.nil? || matches.length < 2)
+    if not matches.nil? || matches.length < 2
       return matches[1]
     else
       raise StandardError.new('Could not find the "file" Flash variable.');