From a06c5d77e380f9ee163da8561aba47acd1786ff5 Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Thu, 1 Jan 2009 19:59:28 +0800 Subject: - fix download path problem when calling superclass's urlgrab --- customgrabber.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'customgrabber.py') diff --git a/customgrabber.py b/customgrabber.py index 5c419c7..3c76d3a 100644 --- a/customgrabber.py +++ b/customgrabber.py @@ -11,7 +11,7 @@ def get_filesize(url): size = 0 return float(size) -class AxelGrabber(grabber.URLGrabber): +class AxelGrabber(grabber.URLGrabber,object): def urlgrab(self, url, filename=None, **kwargs): """grab the file at and make a local copy at If filename is none, the basename of the url is used. @@ -39,7 +39,7 @@ class AxelGrabber(grabber.URLGrabber): parts = 10 if parts == 1: - return grabber.URLGrabber.urlgrab(self, url, filename, **kwargs) + return super (AxelGrabber, self).urlgrab(url, filename, **kwargs) def retryfunc(opts, url, filename, parts): if os.path.exists(filename): -- cgit