diff options
author | z00nx 0 <z00nx0@gmail.com> | 2014-11-10 23:07:22 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-10 23:07:22 +0100 |
commit | a9c7ba9de005a5167fca2ccf8067fbd4e6086fb2 (patch) | |
tree | 079e998c5e653a7e6d18eda412c5be03a8e440fc /module/plugins/hoster | |
parent | [NowVideoAt] Premium support (diff) | |
download | pyload-a9c7ba9de005a5167fca2ccf8067fbd4e6086fb2.tar.xz |
[Keep2shareCc] Added handling of large file error for free users
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/Keep2shareCc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/hoster/Keep2shareCc.py b/module/plugins/hoster/Keep2shareCc.py index 6791998e2..fd8a5524d 100644 --- a/module/plugins/hoster/Keep2shareCc.py +++ b/module/plugins/hoster/Keep2shareCc.py @@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class Keep2shareCc(SimpleHoster): __name__ = "Keep2shareCc" __type__ = "hoster" - __version__ = "0.14" + __version__ = "0.15" __pattern__ = r'https?://(?:www\.)?(keep2share|k2s|keep2s)\.cc/file/(?P<ID>\w+)' @@ -38,6 +38,9 @@ class Keep2shareCc(SimpleHoster): self.fid = re.search(r'<input type="hidden" name="slow_id" value="([^"]+)">', self.html).group(1) self.html = self.load(self.pyfile.url, post={'yt0': '', 'slow_id': self.fid}) + if ">Downloading is not possible" in self.html: + self.fail("Free user can't download large files") + m = re.search(r"function download\(\){.*window\.location\.href = '([^']+)';", self.html, re.S) if m: # Direct mode self.startDownload(m.group(1)) @@ -101,7 +104,6 @@ class Keep2shareCc(SimpleHoster): def startDownload(self, url): d = urljoin(self.base_url, url) - self.logDebug("Direct Link: " + d) self.download(d, disposition=True) |