summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--module/plugins/hoster/Keep2shareCc.py6
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)