url_1.py 274 B

123456
  1. def archive_stream_url(site_url, html_root, sanitized_stream_name):
  2. """
  3. http://127.0.0.1:4000/archive/stream/213222-general/index.html
  4. """
  5. base_url = urllib.parse.urljoin(site_url, html_root)
  6. return f"{base_url}/stream/{sanitized_stream_name}/index.html"