]> gitweb.michael.orlitzky.com - dead/whatever-dl.git/commitdiff
Add "?start=0" to the end of motherless URLs.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 3 Nov 2011 14:17:27 +0000 (10:17 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 3 Nov 2011 14:17:27 +0000 (10:17 -0400)
Whitespace cleanup in motherless.rb.

src/websites/motherless.rb

index c6095a0a4e3645e8f4b2d1700aa6ace7bea3d273..ab74fc0b07a883e065cf271e66a20cbef07faa15 100644 (file)
@@ -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.