diff options
| author | RblSb <msrblsb@gmail.com> | 2025-02-16 15:08:15 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-02-16 15:08:15 +0300 |
| commit | f267adf53fbfa8f53bb3e85c5af5e8b925ae8cdc (patch) | |
| tree | 9f4c54ad46eccda8efef3062d00e2f9da8083ce0 /src/client/Main.hx | |
| parent | f085006f1da0ac431caf391e721f0ee140d1bfb8 (diff) | |
PeerTube support
closes #46
Diffstat (limited to 'src/client/Main.hx')
| -rw-r--r-- | src/client/Main.hx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 660693b..42030dd 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -330,7 +330,9 @@ class Main { final colonPort = port.length > 0 ? ':$port' : port; url = '$protocol//$host$colonPort$url'; } - if (!url.startsWith("http")) url = '$protocol//$url'; + if (!url.startsWith("pt:")) { + if (!url.startsWith("http")) url = '$protocol//$url'; + } final obj:VideoDataRequest = { url: url, |
