From: Michael Orlitzky Date: Sun, 5 Dec 2010 01:15:07 +0000 (-0500) Subject: Fix an off-by-one error in veoh.rb. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=63a898d70c90cf95f423fcd396af9b4639f1c3dd;p=dead%2Fwhatever-dl.git Fix an off-by-one error in veoh.rb. --- 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