summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster')
-rw-r--r--pyload/plugin/hoster/FilerNet.py1
-rw-r--r--pyload/plugin/hoster/GigapetaCom.py1
-rw-r--r--pyload/plugin/hoster/Keep2ShareCc.py2
-rw-r--r--pyload/plugin/hoster/KingfilesNet.py2
-rw-r--r--pyload/plugin/hoster/LinksnappyCom.py2
-rw-r--r--pyload/plugin/hoster/LuckyShareNet.py2
-rw-r--r--pyload/plugin/hoster/MyfastfileCom.py1
-rw-r--r--pyload/plugin/hoster/PornhostCom.py2
-rw-r--r--pyload/plugin/hoster/ShareonlineBiz.py2
-rw-r--r--pyload/plugin/hoster/UploadedTo.py2
-rw-r--r--pyload/plugin/hoster/WebshareCz.py2
-rw-r--r--pyload/plugin/hoster/ZDF.py6
-rw-r--r--pyload/plugin/hoster/ZippyshareCom.py1
13 files changed, 24 insertions, 2 deletions
diff --git a/pyload/plugin/hoster/FilerNet.py b/pyload/plugin/hoster/FilerNet.py
index 7cefa6d9f..f9b38e8cb 100644
--- a/pyload/plugin/hoster/FilerNet.py
+++ b/pyload/plugin/hoster/FilerNet.py
@@ -33,6 +33,7 @@ class FilerNet(SimpleHoster):
LINK_FREE_PATTERN = LINK_PREMIUM_PATTERN = r'href="([^"]+)">Get download</a>'
+
def handleFree(self, pyfile):
inputs = self.parseHtmlForm(input_names={'token': re.compile(r'.+')})[1]
if 'token' not in inputs:
diff --git a/pyload/plugin/hoster/GigapetaCom.py b/pyload/plugin/hoster/GigapetaCom.py
index 803f37897..adbdc2396 100644
--- a/pyload/plugin/hoster/GigapetaCom.py
+++ b/pyload/plugin/hoster/GigapetaCom.py
@@ -51,7 +51,6 @@ class GigapetaCom(SimpleHoster):
self.fail(_("No valid captcha code entered"))
-
def checkErrors(self):
if "All threads for IP" in self.html:
self.logDebug("Your IP is already downloading a file")
diff --git a/pyload/plugin/hoster/Keep2ShareCc.py b/pyload/plugin/hoster/Keep2ShareCc.py
index 4285bedb9..59e5f5c79 100644
--- a/pyload/plugin/hoster/Keep2ShareCc.py
+++ b/pyload/plugin/hoster/Keep2ShareCc.py
@@ -86,6 +86,8 @@ class Keep2ShareCc(SimpleHoster):
self.error(_("Free download link not found"))
self.link = m.group(1)
+
+
def handleCaptcha(self):
post_data = {'free' : 1,
'freeDownloadRequest': 1,
diff --git a/pyload/plugin/hoster/KingfilesNet.py b/pyload/plugin/hoster/KingfilesNet.py
index af1d49390..5f4207d11 100644
--- a/pyload/plugin/hoster/KingfilesNet.py
+++ b/pyload/plugin/hoster/KingfilesNet.py
@@ -28,10 +28,12 @@ class KingfilesNet(SimpleHoster):
LINK_FREE_PATTERN = r'var download_url = \'(.+)\';'
+
def setup(self):
self.resumeDownload = True
self.multiDL = True
+
def handleFree(self, pyfile):
# Click the free user button
post_data = {'op' : "download1",
diff --git a/pyload/plugin/hoster/LinksnappyCom.py b/pyload/plugin/hoster/LinksnappyCom.py
index 2cb14dd51..3f2cf9821 100644
--- a/pyload/plugin/hoster/LinksnappyCom.py
+++ b/pyload/plugin/hoster/LinksnappyCom.py
@@ -51,6 +51,8 @@ class LinksnappyCom(MultiHoster):
@staticmethod
+
+
def _get_host(url):
host = urlsplit(url).netloc
return re.search(r'[\w-]+\.\w+$', host).group(0)
diff --git a/pyload/plugin/hoster/LuckyShareNet.py b/pyload/plugin/hoster/LuckyShareNet.py
index e124c5b94..6dff7d517 100644
--- a/pyload/plugin/hoster/LuckyShareNet.py
+++ b/pyload/plugin/hoster/LuckyShareNet.py
@@ -42,6 +42,8 @@ class LuckyShareNet(SimpleHoster):
# TODO: There should be a filesize limit for free downloads
# TODO: Some files could not be downloaded in free mode
+
+
def handleFree(self, pyfile):
rep = self.load(r"http://luckyshare.net/download/request/type/time/file/" + self.info['pattern']['ID'], decode=True)
diff --git a/pyload/plugin/hoster/MyfastfileCom.py b/pyload/plugin/hoster/MyfastfileCom.py
index c6bf4c227..57041d6cd 100644
--- a/pyload/plugin/hoster/MyfastfileCom.py
+++ b/pyload/plugin/hoster/MyfastfileCom.py
@@ -19,7 +19,6 @@ class MyfastfileCom(MultiHoster):
__authors = [("stickell", "l.stickell@yahoo.it")]
-
def setup(self):
self.chunkLimit = -1
diff --git a/pyload/plugin/hoster/PornhostCom.py b/pyload/plugin/hoster/PornhostCom.py
index 819612fcf..f6a63117c 100644
--- a/pyload/plugin/hoster/PornhostCom.py
+++ b/pyload/plugin/hoster/PornhostCom.py
@@ -27,6 +27,8 @@ class PornhostCom(Hoster):
# Old interface
+
+
def download_html(self):
url = self.pyfile.url
self.html = self.load(url)
diff --git a/pyload/plugin/hoster/ShareonlineBiz.py b/pyload/plugin/hoster/ShareonlineBiz.py
index dcdeca168..608ee73b3 100644
--- a/pyload/plugin/hoster/ShareonlineBiz.py
+++ b/pyload/plugin/hoster/ShareonlineBiz.py
@@ -37,6 +37,8 @@ class ShareonlineBiz(SimpleHoster):
@classmethod
+
+
def getInfo(cls, url="", html=""):
info = {'name': urlparse(unquote(url)).path.split('/')[-1] or _("Unknown"), 'size': 0, 'status': 3 if url else 1, 'url': url}
diff --git a/pyload/plugin/hoster/UploadedTo.py b/pyload/plugin/hoster/UploadedTo.py
index 7031d0ab2..7660ec3ad 100644
--- a/pyload/plugin/hoster/UploadedTo.py
+++ b/pyload/plugin/hoster/UploadedTo.py
@@ -32,6 +32,8 @@ class UploadedTo(SimpleHoster):
@classmethod
+
+
def apiInfo(cls, url="", get={}, post={}):
info = super(UploadedTo, cls).apiInfo(url)
diff --git a/pyload/plugin/hoster/WebshareCz.py b/pyload/plugin/hoster/WebshareCz.py
index 11b7b37b0..673dfaac5 100644
--- a/pyload/plugin/hoster/WebshareCz.py
+++ b/pyload/plugin/hoster/WebshareCz.py
@@ -21,6 +21,8 @@ class WebshareCz(SimpleHoster):
@classmethod
+
+
def getInfo(cls, url="", html=""):
info = super(WebshareCz, cls).getInfo(url, html)
diff --git a/pyload/plugin/hoster/ZDF.py b/pyload/plugin/hoster/ZDF.py
index c02eadc23..6f17df61a 100644
--- a/pyload/plugin/hoster/ZDF.py
+++ b/pyload/plugin/hoster/ZDF.py
@@ -23,6 +23,8 @@ class ZDF(Hoster):
@staticmethod
+
+
def video_key(video):
return (
int(video.findtext("videoBitrate", "0")),
@@ -31,12 +33,16 @@ class ZDF(Hoster):
@staticmethod
+
+
def video_valid(video):
return video.findtext("url").startswith("http") and video.findtext("url").endswith(".mp4") and \
video.findtext("facets/facet").startswith("progressive")
@staticmethod
+
+
def get_id(url):
return int(re.search(r"\D*(\d{4,})\D*", url).group(1))
diff --git a/pyload/plugin/hoster/ZippyshareCom.py b/pyload/plugin/hoster/ZippyshareCom.py
index 5bd25d8c1..91a636f0a 100644
--- a/pyload/plugin/hoster/ZippyshareCom.py
+++ b/pyload/plugin/hoster/ZippyshareCom.py
@@ -65,6 +65,7 @@ class ZippyshareCom(SimpleHoster):
# meant to be populated with the initialization of all the DOM elements found in the scripts
initScripts = set()
+
def replElementById(element):
id = element.group(1) # id might be either 'x' (a real id) or x (a variable)
attr = element.group(4) # attr might be None