]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Fix an off-by-one error in veoh.rb.
authorMichael Orlitzky <michael@orlitzky.com>
Sun, 5 Dec 2010 01:15:07 +0000 (20:15 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Sun, 5 Dec 2010 01:15:07 +0000 (20:15 -0500)
src/websites/veoh.rb

index 1400b71e60732de2a712d38c4f310123fc3552ea..d2744c3f81ef450361efaf1e6f6f2b4396a84e30 100644 (file)
@@ -66,7 +66,7 @@ class Veoh < Website
   def parse_redirect_url(page_data)
     redirect_url_regex = /fullPreviewHashPath=\"(.*?)\"/
     matches = redirect_url_regex.match(page_data)
-    redirect_url = matches[1] if not (matches.nil? || matches.length < 1)
+    redirect_url = matches[1] if not (matches.nil? || matches.length < 2)
     
     return redirect_url
   end