From: Michael Orlitzky Date: Tue, 19 Nov 2013 15:48:02 +0000 (-0500) Subject: Fix filenames for Pornhd videos. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=30441db3f80949238dc273d43a3a74f2f2866e98;p=dead%2Fwhatever-dl.git Fix filenames for Pornhd videos. --- 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