From 30441db3f80949238dc273d43a3a74f2f2866e98 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 19 Nov 2013 10:48:02 -0500 Subject: [PATCH] Fix filenames for Pornhd videos. --- lib/whatever-dl/websites/pornhd.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.43.2