]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Update the generic URL parser to avoid matching single and double quotes in URLs.
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 4 Jun 2011 00:52:22 +0000 (20:52 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Sat, 4 Jun 2011 00:52:22 +0000 (20:52 -0400)
src/websites/generic.rb

index 88fa5156a915333096beb76c0f4d8c8ad202d7a0..51fe07820025b5c50b0eed583120804e3dce5713 100644 (file)
@@ -48,7 +48,7 @@ class Generic < Website
   end
 
   def parse_video_url(page_data)
-    full_video_url_regex = /(http:\/\/.+?\.(flv|mp4))/i
+    full_video_url_regex = /(http:\/\/[^\"\']+?\.(flv|mp4))/i
     matches = full_video_url_regex.match(page_data)
 
     if not (matches.nil? || matches.length < 2)