X-Git-Url: http://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=lib%2Fwhatever-dl%2Fwebsites%2Fpornhd.rb;h=b841f5ad7607b51ad0fd7737793ce10f535cb15c;hb=30441db3f80949238dc273d43a3a74f2f2866e98;hp=b6f985ac1340662330d5a28d7caf71725cdf4743;hpb=39245715416edba68b1fa2d183451d37ff274e95;p=dead%2Fwhatever-dl.git diff --git a/lib/whatever-dl/websites/pornhd.rb b/lib/whatever-dl/websites/pornhd.rb index b6f985a..b841f5a 100644 --- a/lib/whatever-dl/websites/pornhd.rb +++ b/lib/whatever-dl/websites/pornhd.rb @@ -34,6 +34,11 @@ class Pornhd < Website return CGI::unescape(video_url) end + def get_video_filename() + # Use whatever comes after the final frontslash in the main URL, + # not the video URL. Assume it's an FLV. + filename = @url.split('/').pop() + '.flv' + end protected; @@ -51,5 +56,4 @@ class Pornhd < Website return matches[1] end - end