MCPcopy
hub / github.com/pyload/pyload / handle_free

Method handle_free

module/plugins/hoster/HostujeNet.py:34–53  ·  view source on GitHub ↗
(self, pyfile)

Source from the content-addressed store, hash-verified

32 self.chunk_limit = 1
33
34 def handle_free(self, pyfile):
35 m = re.search(r'<script src="([\w^_]+.php)"></script>', self.data)
36 if m is not None:
37 jscript = self.load("http://hostuje.net/" + m.group(1))
38 m = re.search(r"\('(\w+\.php\?i=\w+)'\);", jscript)
39 if m is not None:
40 self.load("http://hostuje.net/" + m.group(1))
41 else:
42 self.error(_("Unexpected javascript format"))
43 else:
44 self.error(_("Script not found"))
45
46 action, inputs = self.parse_html_form(
47 pyfile.url.replace(
48 ".", "\.").replace(
49 "?", "\?"))
50 if not action:
51 self.error(_("Form not found"))
52
53 self.download(action, post=inputs)

Callers

nothing calls this directly

Calls 7

parse_html_formMethod · 0.80
_Function · 0.50
searchMethod · 0.45
loadMethod · 0.45
errorMethod · 0.45
replaceMethod · 0.45
downloadMethod · 0.45

Tested by

no test coverage detected