(self, pyfile)
| 190 | self.pyfile.url = replace_patterns(self.pyfile.url, self.URL_REPLACEMENTS) |
| 191 | |
| 192 | def decrypt(self, pyfile): |
| 193 | self._prepare() |
| 194 | |
| 195 | if self.direct_dl: |
| 196 | self.log_info(_("Looking for direct link...")) |
| 197 | self.handle_direct(pyfile) |
| 198 | |
| 199 | if self.links or self.packages: |
| 200 | self.log_info(_("Direct link detected")) |
| 201 | else: |
| 202 | self.log_info(_("Direct link not found")) |
| 203 | |
| 204 | if not self.links and not self.packages: |
| 205 | self._preload() |
| 206 | self.check_errors() |
| 207 | |
| 208 | links = self.get_links() |
| 209 | self.links.extend(links) |
| 210 | |
| 211 | if self.PAGES_PATTERN: |
| 212 | self.handle_pages(pyfile) |
| 213 | |
| 214 | def handle_free(self, pyfile): |
| 215 | if not self.LINK_FREE_PATTERN: |
nothing calls this directly
no test coverage detected