summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ZShareNet.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-24 17:16:34 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-24 17:16:34 +0100
commit3ae2fbb170ad0f2bfe1ebf7f59e76d3645861f0a (patch)
treeb01e2c881aaf744aaab0af613a7a26e7129f2028 /module/plugins/hoster/ZShareNet.py
parententer captchas on webui (diff)
parentRapidgator: fixed bug #47 (diff)
downloadpyload-3ae2fbb170ad0f2bfe1ebf7f59e76d3645861f0a.tar.xz
Merge remote-tracking branch 'origin/stable'
Conflicts: module/plugins/accounts/FilesonicCom.py module/plugins/accounts/OronCom.py module/plugins/accounts/ShareonlineBiz.py module/plugins/addons/UpdateManager.py module/plugins/crypter/FilesonicComFolder.py module/plugins/hoster/BezvadataCz.py module/plugins/hoster/EuroshareEu.py module/plugins/hoster/FilesonicCom.py module/plugins/hoster/MegauploadCom.py module/plugins/hoster/Premium4Me.py module/plugins/hoster/YoutubeCom.py module/plugins/internal/MultiHoster.py module/utils.py
Diffstat (limited to 'module/plugins/hoster/ZShareNet.py')
-rw-r--r--module/plugins/hoster/ZShareNet.py70
1 files changed, 0 insertions, 70 deletions
diff --git a/module/plugins/hoster/ZShareNet.py b/module/plugins/hoster/ZShareNet.py
deleted file mode 100644
index 6ef456d97..000000000
--- a/module/plugins/hoster/ZShareNet.py
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-import re
-import random
-
-from module.utils import parseFileSize
-from module.plugins.Hoster import Hoster
-
-class ZShareNet(Hoster):
- __name__ = "ZShareNet"
- __type__ = "hoster"
- __pattern__ = r"http://[\w\.]*?zshare\.net/(download|video|image|audio|flash)/.*"
- __version__ = "0.2"
- __description__ = """ZShareNet Download Hoster"""
- __author_name__ = ("espes","Cptn Sandwich")
-
- def setup(self):
- self.multiDL = False
- self.html = None
-
- def process(self, pyfile):
- self.pyfile = pyfile
-
- self.pyfile.url = re.sub("(video|image|audio|flash)","download",self.pyfile.url)
-
- self.html = self.load(pyfile.url)
- if "File Not Found" in self.html:
- self.offline()
-
- filenameMatch = re.search("File Name:.*?<font color=\"#666666\".*?>(.*?)</font>", self.html, re.DOTALL)
- filesizeMatch = re.search("File Size:.*?<font color=\"#666666\".*?>([^<]+)</font>", self.html, re.DOTALL)
- if not filenameMatch or not filesizeMatch:
- self.offline()
- filename = filenameMatch.group(1)
- filesize = filesizeMatch.group(1)
- if filename.strip() == "":
- self.offline()
-
- pyfile.name = filename
-
- pyfile.size = parseFileSize(filesize)
-
- if '<input name="download"' not in self.html:
- self.fail("No download form")
-
- self.html = self.load(pyfile.url, post={
- "download": 1,
- "imageField.x": random.randrange(160),
- "imageField.y": random.randrange(60)})
-
- dllinkMatch = re.search("var link_enc\\=new Array\\(\\'(.*?)\\'\\)", self.html)
- if dllinkMatch:
- dllink = re.sub("\\'\\,\\'", "", dllinkMatch.group(1))
- else:
- self.fail("Plugin defect")
-
- self.setWait(51)
- self.wait()
-
- self.download(dllink)
- check = self.checkDownload({
- "unav": "/images/download.gif",
- "404": "404 - Not Found"
- })
- #print check
- if check == "unav":
- self.fail("Plugin defect")
- elif check == "404":
- self.offline()