]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - src/websites/veoh.rb
Added new tests for (yet another) Veoh URL format.
[dead/whatever-dl.git] / src / websites / veoh.rb
index 5830e8f5c40d7b430a9139d18aea73c69f4438e1..1400b71e60732de2a712d38c4f310123fc3552ea 100644 (file)
@@ -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\/.*?(v[[: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?