X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Fwhatever-dl.git;a=blobdiff_plain;f=src%2Fwebsites%2Fefukt.rb;h=38b5913e0da242daabd80d2fc9b765972072667f;hp=27d20992927dc57cba00b3846611a677e7dedab5;hb=b9ebb66dc6ba56534eaa8280e6220ade7190757d;hpb=5ec7f2000e59a8d035f47813e85db6c2aea0675d diff --git a/src/websites/efukt.rb b/src/websites/efukt.rb index 27d2099..38b5913 100644 --- a/src/websites/efukt.rb +++ b/src/websites/efukt.rb @@ -60,11 +60,20 @@ class Efukt < Website # Get the FLV file URL from the HTML page for this movie. # It's stored in some Flash variable. def parse_video_url(page_data) + # There are two formats; try them both one at a time. video_url_regex = /&file=(http:\/\/.*\.flv)&/i matches = video_url_regex.match(page_data) + if not (matches.nil? || matches.length < 2) + return matches[1] + end + + # If we didn't return a match already, try the second format. + video_url_regex = /