From 58d554d481fe3bef764040be061bd13aeebb15ef Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 3 Jun 2011 20:52:22 -0400 Subject: [PATCH] Update the generic URL parser to avoid matching single and double quotes in URLs. --- src/websites/generic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/websites/generic.rb b/src/websites/generic.rb index 88fa515..51fe078 100644 --- a/src/websites/generic.rb +++ b/src/websites/generic.rb @@ -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) -- 2.44.2