MCPcopy
hub / github.com/pyload/pyload / decrypt

Method decrypt

module/plugins/internal/SimpleCrypter.py:192–212  ·  view source on GitHub ↗
(self, pyfile)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 9

_prepareMethod · 0.95
handle_directMethod · 0.95
_preloadMethod · 0.95
check_errorsMethod · 0.95
get_linksMethod · 0.95
handle_pagesMethod · 0.95
log_infoMethod · 0.80
extendMethod · 0.80
_Function · 0.50

Tested by

no test coverage detected