X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fwebsites%2Fveoh.rb;h=951d87dabc9975dc959bd2d327f25acbd8bcd0bc;hb=8e886df259246365023322b78f58e4037cb536a4;hp=bbe448bc766be4431be6916a14a83b65dac33c53;hpb=848337bc8798b4059cbbfedd0558f99a1c5074ec;p=dead%2Fwhatever-dl.git diff --git a/src/websites/veoh.rb b/src/websites/veoh.rb index bbe448b..951d87d 100644 --- a/src/websites/veoh.rb +++ b/src/websites/veoh.rb @@ -21,7 +21,7 @@ require 'src/website' class Veoh < Website - VALID_VEOH_URL_REGEX = /^(http:\/\/)?(www\.)?veoh\.com\/((videos\/([[:alnum:]]+))|(group\/.*)|(browse\/.*\/[[:alnum:]]+))$/ + VALID_VEOH_URL_REGEX = /^(http:\/\/)?(www\.)?veoh\.com\/.*?(v[[:alnum:]]+)$/ def self.owns_url?(url) return url =~ VALID_VEOH_URL_REGEX @@ -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