diff options
| author | RblSb <msrblsb@gmail.com> | 2021-07-13 23:03:47 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2021-07-13 23:03:47 +0300 |
| commit | 530bee28a0baa653e2be73cba525bd38d5e04b5e (patch) | |
| tree | 59da5172c4e092d64e4412ea5ada0c24112f3265 /src | |
| parent | 8b16bfc888e801cf3f8d57378459f59b382388fa (diff) | |
Better subs check
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/players/RawSubs.hx | 1 |
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; |
