X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2Fwebsites%2Fmotherless.rb;h=ab74fc0b07a883e065cf271e66a20cbef07faa15;hb=58c138db3959115c63f727306ab0cac23bb48038;hp=c6095a0a4e3645e8f4b2d1700aa6ace7bea3d273;hpb=6e95377fe761bb0988e6e5e27327c0f189a2ecb7;p=dead%2Fwhatever-dl.git 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.