fix(savetv): user:pass@ aus URL entfernen (Chrome strippt Credentials)
This commit is contained in:
parent
73332bfc14
commit
fad6b145ff
1 changed files with 1 additions and 3 deletions
|
|
@ -183,9 +183,7 @@ def register_extra_routes(app, progress_lock=None, load_progress_raw=None, save_
|
||||||
clean = name.rsplit(".", 1)[0]
|
clean = name.rsplit(".", 1)[0]
|
||||||
esc = _html.escape(name, quote=True)
|
esc = _html.escape(name, quote=True)
|
||||||
date_str = _dt.fromtimestamp(mtime).strftime("%d.%m.%Y")
|
date_str = _dt.fromtimestamp(mtime).strftime("%d.%m.%Y")
|
||||||
_b = SAVETV_DIRECT_BASE.split("://", 1)
|
href_direct = SAVETV_DIRECT_BASE.rstrip("/") + "/files/" + _urlquote(name)
|
||||||
_auth = _urlquote(SAVETV_DIRECT_USER) + ":" + _urlquote(SAVETV_DIRECT_PASS) + "@"
|
|
||||||
href_direct = _b[0] + "://" + _auth + _b[1].lstrip("/").rstrip("/") + "/files/" + _urlquote(name)
|
|
||||||
href_tunnel = SAVETV_TUNNEL_BASE.rstrip("/") + "/files/" + _urlquote(name)
|
href_tunnel = SAVETV_TUNNEL_BASE.rstrip("/") + "/files/" + _urlquote(name)
|
||||||
rows += (
|
rows += (
|
||||||
'<tr data-name="' + _html.escape(clean.lower(), quote=True) + '" '
|
'<tr data-name="' + _html.escape(clean.lower(), quote=True) + '" '
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue