diff options
author | mkaay <mkaay@mkaay.de> | 2011-06-10 13:09:33 +0200 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2011-06-10 13:09:33 +0200 |
commit | a40cf88920e94490d5c851fb273b8d2f48aef6fb (patch) | |
tree | 8de448bbf50535901a35a26c2a145403ed166107 /module/plugins/hoster/ZippyshareCom.py | |
parent | ernieb's rapidshare patch (diff) | |
download | pyload-a40cf88920e94490d5c851fb273b8d2f48aef6fb.tar.xz |
ernieb's hoster patches
Diffstat (limited to 'module/plugins/hoster/ZippyshareCom.py')
-rw-r--r-- | module/plugins/hoster/ZippyshareCom.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py index 9c0b88e58..335f218d4 100644 --- a/module/plugins/hoster/ZippyshareCom.py +++ b/module/plugins/hoster/ZippyshareCom.py @@ -26,8 +26,11 @@ class ZippyshareCom(Hoster): self.offline() pyfile.name = self.get_file_name() - self.download(self.get_file_url()) - + pyfile.url = self.get_file_url() + if pyfile.url: + self.download(pyfile.url) + else: + self.fail("URL could not be extracted") def download_html(self): url = self.pyfile.url @@ -49,8 +52,8 @@ class ZippyshareCom(Hoster): seed_pattern = r"seed: (\d*)" seed_search = re.search(seed_pattern, self.html) if seed_search is None: - return False - + self.fail("Problem downloading file.. offline?") + file_seed = int(seed_search.group(1)) time = str((file_seed * 24) % 6743256) |