From 63a898d70c90cf95f423fcd396af9b4639f1c3dd Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 4 Dec 2010 20:15:07 -0500 Subject: [PATCH] Fix an off-by-one error in veoh.rb. --- src/websites/veoh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websites/veoh.rb b/src/websites/veoh.rb index 1400b71..d2744c3 100644 --- a/src/websites/veoh.rb +++ b/src/websites/veoh.rb @@ -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 -- 2.44.2