From 58c138db3959115c63f727306ab0cac23bb48038 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Thu, 3 Nov 2011 10:17:27 -0400 Subject: [PATCH] Add "?start=0" to the end of motherless URLs. Whitespace cleanup in motherless.rb. --- src/websites/motherless.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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. -- 2.43.2