MCPcopy Create free account
hub / github.com/pyload/pyload / fixurl

Method fixurl

module/plugins/internal/Base.py:481–489  ·  view source on GitHub ↗
(self, url, baseurl=None)

Source from the content-addressed store, hash-verified

479 self.retry(attemps, wait, msg=_("Retry Captcha"), msgfail=msgfail)
480
481 def fixurl(self, url, baseurl=None):
482 baseurl = baseurl or self.pyfile.url
483
484 if not urlparse.urlparse(url).scheme:
485 url_p = urlparse.urlparse(baseurl)
486 baseurl = "%s://%s" % (url_p.scheme, url_p.netloc)
487 url = urlparse.urljoin(baseurl, url)
488
489 return url
490
491 def load(self, *args, **kwargs):
492 self.check_status()

Callers 11

isresourceMethod · 0.80
downloadMethod · 0.80
decryptMethod · 0.80
decryptMethod · 0.80
resolve_hosterMethod · 0.80
handle_captchaMethod · 0.80
handle_freeMethod · 0.80
handle_freeMethod · 0.80
_decrypt_signatureMethod · 0.80
handle_freeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected