From acc46fc3497a66a427b795b4a22c6e71d69185a1 Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Sat, 13 Dec 2014 15:56:57 +0100
Subject: Update

---
 pyload/plugins/hoster/CrockoCom.py | 70 --------------------------------------
 1 file changed, 70 deletions(-)
 delete mode 100644 pyload/plugins/hoster/CrockoCom.py

(limited to 'pyload/plugins/hoster/CrockoCom.py')

diff --git a/pyload/plugins/hoster/CrockoCom.py b/pyload/plugins/hoster/CrockoCom.py
deleted file mode 100644
index dcce3973f..000000000
--- a/pyload/plugins/hoster/CrockoCom.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from pyload.plugins.internal.captcha import ReCaptcha
-from pyload.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-
-
-class CrockoCom(SimpleHoster):
-    __name    = "CrockoCom"
-    __type    = "hoster"
-    __version = "0.17"
-
-    __pattern = r'http://(?:www\.)?(crocko|easy-share)\.com/\w+'
-
-    __description = """Crocko hoster plugin"""
-    __license     = "GPLv3"
-    __authors     = [("zoidberg", "zoidberg@mujmail.cz")]
-
-
-    NAME_PATTERN = r'<span class="fz24">Download:\s*<strong>(?P<N>.*)'
-    SIZE_PATTERN = r'<span class="tip1"><span class="inner">(?P<S>[^<]+)</span></span>'
-    OFFLINE_PATTERN = r'<h1>Sorry,<br />the page you\'re looking for <br />isn\'t here.</h1>|File not found'
-
-    CAPTCHA_PATTERN = re.compile(r"u='(/file_contents/captcha/\w+)';\s*w='(\d+)';")
-
-    FORM_PATTERN = r'<form  method="post" action="([^"]+)">(.*?)</form>'
-    FORM_INPUT_PATTERN = r'<input[^>]* name="?([^" ]+)"? value="?([^" ]+)"?[^>]*>'
-
-    NAME_REPLACEMENTS = [(r'<[^>]*>', '')]
-
-
-    def handleFree(self):
-        if "You need Premium membership to download this file." in self.html:
-            self.fail(_("You need Premium membership to download this file"))
-
-        for _i in xrange(5):
-            m = re.search(self.CAPTCHA_PATTERN, self.html)
-            if m:
-                url, wait_time = 'http://crocko.com' + m.group(1), int(m.group(2))
-                self.wait(wait_time)
-                self.html = self.load(url)
-            else:
-                break
-
-        m = re.search(self.FORM_PATTERN, self.html, re.S)
-        if m is None:
-            self.error(_("FORM_PATTERN not found"))
-
-        action, form = m.groups()
-        inputs = dict(re.findall(self.FORM_INPUT_PATTERN, form))
-        recaptcha = ReCaptcha(self)
-
-        for _i in xrange(5):
-            inputs['recaptcha_challenge_field'], inputs['recaptcha_response_field'] = recaptcha.challenge()
-            self.download(action, post=inputs)
-
-            check = self.checkDownload({
-                "captcha_err": recaptcha.KEY_AJAX_PATTERN
-            })
-
-            if check == "captcha_err":
-                self.invalidCaptcha()
-            else:
-                break
-        else:
-            self.fail(_("No valid captcha solution received"))
-
-
-getInfo = create_getInfo(CrockoCom)
-- 
cgit v1.2.3