aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/players
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/players')
-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