aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-08-13 06:28:13 +0300
committerRblSb <msrblsb@gmail.com>2021-08-13 06:28:13 +0300
commit5b908e914ebfeedb2895f5de1b9167a6ce12c136 (patch)
tree14521fa2dd63c24afc219db90714e2a1509d5034 /res
parentf972d4b7b1c6a69ab20cd2aee5a43df702796075 (diff)
Fix local subs
closes #28
Diffstat (limited to 'res')
-rw-r--r--res/client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/client.js b/res/client.js
index 75e3448..b0953ae 100644
--- a/res/client.js
+++ b/res/client.js
@@ -2819,7 +2819,10 @@ client_players_RawSubs.loadSubs = function(item,video) {
if(client_JsApi.hasSubtitleSupport(ext)) {
return;
}
- var url = "/proxy?url=" + encodeURI(item.subs);
+ var url = encodeURI(item.subs);
+ if(!StringTools.startsWith(url,"/")) {
+ url = "/proxy?url=" + url;
+ }
switch(ext) {
case "ass":
client_players_RawSubs.parseAss(video,url);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage