summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegauploadCom.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:19:23 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-13 20:19:23 +0200
commit67db64c7c8c1813a4e22ed819846a69c6abefc2e (patch)
treeb01c50f408ad05440bec6e0f52df0b5196d4e3d7 /module/plugins/hoster/MegauploadCom.py
parentbetter retry function (diff)
downloadpyload-67db64c7c8c1813a4e22ed819846a69c6abefc2e.tar.xz
erniebs patches
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r--module/plugins/hoster/MegauploadCom.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/plugins/hoster/MegauploadCom.py b/module/plugins/hoster/MegauploadCom.py
index 5e03ce3aa..fa16fdf31 100644
--- a/module/plugins/hoster/MegauploadCom.py
+++ b/module/plugins/hoster/MegauploadCom.py
@@ -99,7 +99,10 @@ class MegauploadCom(Hoster):
self.wait()
pyfile.name = self.get_file_name()
- self.download(self.get_file_url())
+ url = self.get_file_url()
+ if url is None:
+ return self.fail("URL could not be retrieved")
+ self.download( url )
check = self.checkDownload({"limit": "Download limit exceeded"})
if check == "limit":