aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players/RawSubs.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2023-06-21 20:15:52 +0300
committerRblSb <msrblsb@gmail.com>2023-06-21 20:51:11 +0300
commit452ac109e0a1309ff0e7212de271b2b6d3641353 (patch)
tree492f0afbc1f025fc73607374fc897f2f96074c67 /src/client/players/RawSubs.hx
parentc476a16ad982e778580d74b8e4120ed29118129a (diff)
Skip proxy for local subs
Diffstat (limited to 'src/client/players/RawSubs.hx')
-rw-r--r--src/client/players/RawSubs.hx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/players/RawSubs.hx b/src/client/players/RawSubs.hx
index 09b21d1..d7e32e2 100644
--- a/src/client/players/RawSubs.hx
+++ b/src/client/players/RawSubs.hx
@@ -18,12 +18,12 @@ private typedef Duration = {
}
class RawSubs {
- public static function loadSubs(item:VideoItem, video:VideoElement):Void {
- if (item.subs == null || item.subs.length == 0) return;
- final ext = PathTools.urlExtension(item.subs);
+ public static function loadSubs(subsUrl:String, video:VideoElement):Void {
+ if (subsUrl == null || subsUrl.length == 0) return;
+ final ext = PathTools.urlExtension(subsUrl);
// do not load subs if there is custom plugin
if (JsApi.hasSubtitleSupport(ext)) return;
- var url = encodeURI(item.subs);
+ var url = encodeURI(subsUrl);
if (!url.startsWith("/")) {
final protocol = Browser.location.protocol;
if (!url.startsWith("http")) url = '$protocol//$url';
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage