From 848337bc8798b4059cbbfedd0558f99a1c5074ec Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 1 Apr 2010 00:36:43 -0400 Subject: [PATCH] Added URL/parse support for two new Veoh formats. --- src/websites/veoh.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/websites/veoh.rb b/src/websites/veoh.rb index 5830e8f..bbe448b 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:]]+)$/ + VALID_VEOH_URL_REGEX = /^(http:\/\/)?(www\.)?veoh\.com\/((videos\/([[:alnum:]]+))|(group\/.*)|(browse\/.*\/[[:alnum:]]+))$/ def self.owns_url?(url) return url =~ VALID_VEOH_URL_REGEX @@ -53,7 +53,7 @@ class Veoh < Website protected; def parse_video_id() - video_id_regex = /[[:alnum:]]+$/ + video_id_regex = /v[[:alnum:]]+$/ matches = video_id_regex.match(@url) video_id = matches[0] if not matches.nil? -- 2.44.2