diff options
author | Jeix <devnull@localhost> | 2010-10-13 22:28:29 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-10-13 22:28:29 +0200 |
commit | 575f5954855c84406b0992afcedce8b03f0a5288 (patch) | |
tree | f1b2caca6d5b0a9022a9c5189850b014d08e3a4a /module/plugins/hoster/StorageTo.py | |
parent | work and reap, work and sleep, freakshare, shareonline, shragle (diff) | |
download | pyload-575f5954855c84406b0992afcedce8b03f0a5288.tar.xz |
Work sometimes can be a bore, and really we want to just yawn and snore, Storage.to and Kickload.com
Diffstat (limited to 'module/plugins/hoster/StorageTo.py')
-rw-r--r-- | module/plugins/hoster/StorageTo.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/module/plugins/hoster/StorageTo.py b/module/plugins/hoster/StorageTo.py index 49957ba89..d3f9bce96 100644 --- a/module/plugins/hoster/StorageTo.py +++ b/module/plugins/hoster/StorageTo.py @@ -9,9 +9,9 @@ from module.plugins.Hoster import Hoster class StorageTo(Hoster): __name__ = "StorageTo" __type__ = "hoster" - __pattern__ = r"http://(?:www)?\.storage\.to/get/.*" + __pattern__ = r"http://(?:www)?\.?(?:storage\.to|kickload\.com)/get/.*" __version__ = "0.2" - __description__ = """Storage.to Download Hoster""" + __description__ = """Storage.to / Kickload.com Download Hoster""" __author_name__ = ("mkaay") def setup(self): @@ -25,14 +25,9 @@ class StorageTo(Hoster): self.prepare() self.download( self.get_file_url() ) - - - def prepare(self): pyfile = self.pyfile - self.req.clear_cookies() - self.wantReconnect = False if not self.file_exists(): @@ -57,6 +52,9 @@ class StorageTo(Hoster): url = self.pyfile.url info_url = url.replace("/get/", "/getlink/") src = self.load(info_url, cookies=True) + if "To download this file you need a premium account" in src: + self.fail("Need premium account for this file") + pattern = re.compile(r"'(\w+)' : (.*?)[,|\}]") self.api_data = {} for pair in pattern.findall(src): |