| 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) |