aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/players/RawSubs.hx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/players/RawSubs.hx b/src/client/players/RawSubs.hx
index a8cbc98..aa77bf8 100644
--- a/src/client/players/RawSubs.hx
+++ b/src/client/players/RawSubs.hx
@@ -22,7 +22,10 @@ class RawSubs {
final ext = PathTools.urlExtension(item.subs);
// do not load subs if there is custom plugin
if (JsApi.hasSubtitleSupport(ext)) return;
- final url = '/proxy?url=${encodeURI(item.subs)}';
+ var url = encodeURI(item.subs);
+ if (!url.startsWith("/")) {
+ url = '/proxy?url=$url';
+ }
switch ext {
case "ass":
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage