]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/blobdiff - src/websites/generic.rb
Update the generic URL parser to avoid matching single and double quotes in URLs.
[dead/whatever-dl.git] / 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)