diff options
Diffstat (limited to 'module/plugins/hoster/MegauploadCom.py')
-rw-r--r-- | module/plugins/hoster/MegauploadCom.py | 5 |
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":
|