From: Michael Orlitzky Date: Thu, 3 Nov 2011 14:17:27 +0000 (-0400) Subject: Add "?start=0" to the end of motherless URLs. X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=58c138db3959115c63f727306ab0cac23bb48038;p=dead%2Fwhatever-dl.git Add "?start=0" to the end of motherless URLs. Whitespace cleanup in motherless.rb. --- diff --git a/src/websites/motherless.rb b/src/websites/motherless.rb index c6095a0..ab74fc0 100644 --- a/src/websites/motherless.rb +++ b/src/websites/motherless.rb @@ -26,18 +26,22 @@ class Motherless < Website return url =~ VALID_MOTHERLESS_URL_REGEX end - + def get_video_url() - page_data = self.get_page_data(@url) + page_data = self.get_page_data(@url) filepath = parse_video_url(page_data) - - return filepath + + # Some videos 403 without this parameter. + get_params = "?start=0" + video_url = filepath + get_params + + return video_url end - + protected; - + def parse_video_url(page_data) # If neither of the source formats are present, just grab the # video URL from the Flash variable and be done with it.