Whitespace cleanup in motherless.rb.
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.