summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/HostujeNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/HostujeNet.py')
-rw-r--r--module/plugins/hoster/HostujeNet.py49
1 files changed, 0 insertions, 49 deletions
diff --git a/module/plugins/hoster/HostujeNet.py b/module/plugins/hoster/HostujeNet.py
deleted file mode 100644
index ec91e50b9..000000000
--- a/module/plugins/hoster/HostujeNet.py
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import re
-
-from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
-
-
-class HostujeNet(SimpleHoster):
- __name__ = "HostujeNet"
- __type__ = "hoster"
- __version__ = "0.01"
-
- __pattern__ = r'http://(?:www\.)?hostuje\.net/\w+'
-
- __description__ = """Hostuje.net hoster plugin"""
- __license__ = "GPLv3"
- __authors__ = [("GammaC0de", None)]
-
-
- NAME_PATTERN = r'<input type="hidden" name="name" value="(?P<N>.+?)">'
- SIZE_PATTERN = r'<b>Rozmiar:</b> (?P<S>[\d.,]+) (?P<U>[\w^_]+)<br>'
- OFFLINE_PATTERN = ur'Podany plik nie został odnaleziony\.\.\.'
-
-
- def setup(self):
- self.multiDL = True
- self.chunkLimit = 1
-
-
- def handleFree(self, pyfile):
- m = re.search(r'<script src="([\w^_]+.php)"></script>', self.html)
- if m:
- jscript = self.load("http://hostuje.net/" + m.group(1))
- m = re.search(r"\('(\w+\.php\?i=\w+)'\);", jscript)
- if m:
- self.load("http://hostuje.net/" + m.group(1))
- else:
- self.error(_("unexpected javascript format"))
- else:
- self.error(_("script not found"))
-
- action, inputs = self.parseHtmlForm(pyfile.url.replace(".", "\.").replace( "?", "\?"))
- if not action:
- self.error(_("form not found"))
-
- self.download(action, post=inputs)
-
-
-getInfo = create_getInfo(HostujeNet)