From 2e205cef74305413e438d514cc675c0d96d46751 Mon Sep 17 00:00:00 2001
From: z00nx <z00nx0@gmail.com>
Date: Fri, 11 Jan 2013 17:22:08 +1100
Subject: Added BSecureUploadEu plugin

---
 module/plugins/hoster/SecureUploadEu.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 module/plugins/hoster/SecureUploadEu.py

(limited to 'module/plugins')

diff --git a/module/plugins/hoster/SecureUploadEu.py b/module/plugins/hoster/SecureUploadEu.py
new file mode 100644
index 000000000..b9a900d96
--- /dev/null
+++ b/module/plugins/hoster/SecureUploadEu.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
+
+class SecureUploadEu(XFileSharingPro):
+    __name__ = "SecureUploadEu"
+    __type__ = "hoster"
+    __pattern__ = r"http://(www\.)?secureupload\.eu/(\w){12}(/\w+)"
+    __version__ = "0.01"
+    __description__ = """SecureUpload.eu hoster plugin"""
+    __author_name__ = ("z00nx")
+    __author_mail__ = ("z00nx0@gmail.com")
+
+    HOSTER_NAME = "secureupload.eu"
+    FILE_INFO_PATTERN = '<h3>Downloading (?P<N>[^<]+) \((?P<S>[^<]+)\)</h3>'
+    FILE_OFFLINE_PATTERN = 'The file was removed|File Not Found'
+
+getInfo = create_getInfo(SecureUploadEu)
-- 
cgit v1.2.3


From 6672e9690f79569f55a2afbb2575d7c671d82812 Mon Sep 17 00:00:00 2001
From: z00nx <z00nx0@gmail.com>
Date: Fri, 11 Jan 2013 18:56:40 +1100
Subject: Added LetitbitNetFolder decrypter

---
 module/plugins/crypter/LetitbitNetFolder.py | 33 +++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 module/plugins/crypter/LetitbitNetFolder.py

(limited to 'module/plugins')

diff --git a/module/plugins/crypter/LetitbitNetFolder.py b/module/plugins/crypter/LetitbitNetFolder.py
new file mode 100644
index 000000000..68aad9dd7
--- /dev/null
+++ b/module/plugins/crypter/LetitbitNetFolder.py
@@ -0,0 +1,33 @@
+# -*- coding: utf-8 -*-
+
+import re
+from module.plugins.Crypter import Crypter
+
+
+class LetitbitNetFolder(Crypter):
+    __name__ = "LetitbitNetFolder"
+    __type__ = "crypter"
+    __pattern__ = r"http://(?:www\.)?letitbit.net/folder/\w+"
+    __version__ = "0.1"
+    __description__ = """Letitbit.net Folder Plugin"""
+    __author_name__ = ("DHMH", "z00nx")
+    __author_mail__ = ("webmaster@pcProfil.de", "z00nx0@gmail.com")
+
+    FOLDER_PATTERN = r'<table>(.*)</table>'
+    LINK_PATTERN = r'<a href="([^"]+)" target="_blank">'
+
+    def decrypt(self, pyfile):
+        html = self.load(self.pyfile.url)
+
+        new_links = []
+
+        folder = re.search(self.FOLDER_PATTERN, html, re.DOTALL)
+        if folder is None:
+            self.fail("Parse error (FOLDER)")
+
+        new_links.extend(re.findall(self.LINK_PATTERN, folder.group(0)))
+
+        if new_links:
+            self.core.files.addLinks(new_links, self.pyfile.package().id)
+        else:
+            self.fail('Could not extract any links')
-- 
cgit v1.2.3


From dd31ba46735267a8486e1ae0b766c3d350e9a38b Mon Sep 17 00:00:00 2001
From: z00nx <z00nx0@gmail.com>
Date: Fri, 11 Jan 2013 23:41:33 +1100
Subject: Added CloudzerNet plugin

---
 module/plugins/hoster/CloudzerNet.py | 65 ++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 module/plugins/hoster/CloudzerNet.py

(limited to 'module/plugins')

diff --git a/module/plugins/hoster/CloudzerNet.py b/module/plugins/hoster/CloudzerNet.py
new file mode 100644
index 000000000..36b3bd79c
--- /dev/null
+++ b/module/plugins/hoster/CloudzerNet.py
@@ -0,0 +1,65 @@
+# -*- coding: utf-8 -*-
+import re
+from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo
+from module.common.json_layer import json_loads
+from module.plugins.ReCaptcha import ReCaptcha
+from module.network.RequestFactory import getURL
+
+
+def getInfo(urls):
+    for url in urls:
+        header = getURL(url, just_header=True)
+        if 'Location: http://cloudzer.net/404' in header:
+            file_info = (url, 0, 1, url)
+        else:
+            file_info = parseFileInfo(CloudzerNet, url, getURL(url, decode=True))
+        yield file_info
+
+
+class CloudzerNet(SimpleHoster):
+    __name__ = "CloudzerNet"
+    __type__ = "hoster"
+    __pattern__ = r"http://(www\.)?(cloudzer\.net/file/|clz\.to/(file/)?)(?P<ID>\w+).*"
+    __version__ = "0.01"
+    __description__ = """Cloudzer.net hoster plugin"""
+    __author_name__ = ("spoob", "mkaay", "gs", "z00nx")
+    __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "I-_-I-_-I@web.de", "z00nx0@gmail.com")
+
+    FILE_INFO_PATTERN = '<b class="filename"[^>]+>(?P<N>[^<]+)</b>\s+<span class="size">(?P<S>[^<]+)</span>'
+    WAIT_PATTERN = '<meta name="wait" content="(\d+)">'
+    FILE_OFFLINE_PATTERN = r'Please check the URL for typing errors, respectively'
+    CAPTCHA_KEY = '6Lcqz78SAAAAAPgsTYF3UlGf2QFQCNuPMenuyHF3'
+
+    def handleFree(self):
+        found = re.search(self.WAIT_PATTERN, self.html)
+        seconds = int(found.group(1))
+        self.logDebug("Found wait", seconds)
+        self.setWait(seconds + 1)
+        self.wait()
+        response = self.load('http://cloudzer.net/io/ticket/slot/%s' % self.file_info['ID'], post=' ', cookies=True)
+        self.logDebug("Download slot request response", response)
+        response = json_loads(response)
+        if response["succ"] is not True:
+            self.fail("Unable to get a download slot")
+
+        recaptcha = ReCaptcha(self)
+        challenge, response = recaptcha.challenge(self.CAPTCHA_KEY)
+        post_data = {"recaptcha_challenge_field": challenge, "recaptcha_response_field": response}
+        response = json_loads(self.load('http://cloudzer.net/io/ticket/captcha/%s' % self.file_info['ID'], post=post_data, cookies=True))
+        self.logDebug("Captcha check response", response)
+        self.logDebug("First check")
+
+        if "err" in response:
+            if response["err"] == "captcha":
+                self.logDebug("Wrong captcha")
+                self.invalidCaptcha()
+                self.retry()
+            elif "Sie haben die max" in response["err"] or "You have reached the max" in response["err"]:
+                self.logDebug("Download limit reached, waiting an hour")
+                self.setWait(3600)
+                self.wait()
+        if "type" in response:
+            if response["type"] == "download":
+                url = response["url"]
+                self.logDebug("Download link", url)
+                self.download(url)
-- 
cgit v1.2.3


From b245f563f14c3bebebcf4bc29a28039ca36eba5f Mon Sep 17 00:00:00 2001
From: z00nx <z00nx0@gmail.com>
Date: Sat, 12 Jan 2013 13:29:07 +1100
Subject: Removed spoob and mkaay from authors list and fixed download name
 issue.

---
 module/plugins/hoster/CloudzerNet.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'module/plugins')

diff --git a/module/plugins/hoster/CloudzerNet.py b/module/plugins/hoster/CloudzerNet.py
index 36b3bd79c..74a61d038 100644
--- a/module/plugins/hoster/CloudzerNet.py
+++ b/module/plugins/hoster/CloudzerNet.py
@@ -22,8 +22,8 @@ class CloudzerNet(SimpleHoster):
     __pattern__ = r"http://(www\.)?(cloudzer\.net/file/|clz\.to/(file/)?)(?P<ID>\w+).*"
     __version__ = "0.01"
     __description__ = """Cloudzer.net hoster plugin"""
-    __author_name__ = ("spoob", "mkaay", "gs", "z00nx")
-    __author_mail__ = ("spoob@pyload.org", "mkaay@mkaay.de", "I-_-I-_-I@web.de", "z00nx0@gmail.com")
+    __author_name__ = ("gs", "z00nx")
+    __author_mail__ = ("I-_-I-_-I@web.de", "z00nx0@gmail.com")
 
     FILE_INFO_PATTERN = '<b class="filename"[^>]+>(?P<N>[^<]+)</b>\s+<span class="size">(?P<S>[^<]+)</span>'
     WAIT_PATTERN = '<meta name="wait" content="(\d+)">'
@@ -62,4 +62,4 @@ class CloudzerNet(SimpleHoster):
             if response["type"] == "download":
                 url = response["url"]
                 self.logDebug("Download link", url)
-                self.download(url)
+                self.download(url, disposition=True)
-- 
cgit v1.2.3