aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-02-16 15:08:15 +0300
committerRblSb <msrblsb@gmail.com>2025-02-16 15:08:15 +0300
commitf267adf53fbfa8f53bb3e85c5af5e8b925ae8cdc (patch)
tree9f4c54ad46eccda8efef3062d00e2f9da8083ce0 /src/client/Main.hx
parentf085006f1da0ac431caf391e721f0ee140d1bfb8 (diff)
PeerTube support
closes #46
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx4
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,
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage