lib/rapidshare-base/api.rb in rapidshare-ext-0.0.2 vs lib/rapidshare-base/api.rb in rapidshare-ext-0.0.3
- old
+ new
@@ -55,7 +55,17 @@
end
end
self.parse_response(parser, response)
end
+
+ def download(file, params= {})
+ if file.match /\Ahttps?:\/\//
+ url = file
+ else
+ url = file_info(file)[:url]
+ end
+
+ Rapidshare::Ext::Download.new(url, self, params).perform
+ end
end
end
\ No newline at end of file