aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-07-13 23:03:47 +0300
committerRblSb <msrblsb@gmail.com>2021-07-13 23:03:47 +0300
commit530bee28a0baa653e2be73cba525bd38d5e04b5e (patch)
tree59da5172c4e092d64e4412ea5ada0c24112f3265 /src/client
parent8b16bfc888e801cf3f8d57378459f59b382388fa (diff)
Better subs check
Diffstat (limited to 'src/client')
-rw-r--r--src/client/players/RawSubs.hx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/players/RawSubs.hx b/src/client/players/RawSubs.hx
index 88a2f03..a8cbc98 100644
--- a/src/client/players/RawSubs.hx
+++ b/src/client/players/RawSubs.hx
@@ -18,6 +18,7 @@ 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);
// do not load subs if there is custom plugin
if (JsApi.hasSubtitleSupport(ext)) return;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage