aboutsummaryrefslogtreecommitdiffstats
path: root/res/client.js
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 /res/client.js
parent8b16bfc888e801cf3f8d57378459f59b382388fa (diff)
Better subs check
Diffstat (limited to 'res/client.js')
-rw-r--r--res/client.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/client.js b/res/client.js
index 016a4e4..a11e3a6 100644
--- a/res/client.js
+++ b/res/client.js
@@ -2707,6 +2707,9 @@ client_players_Raw.prototype = {
var client_players_RawSubs = function() { };
client_players_RawSubs.__name__ = true;
client_players_RawSubs.loadSubs = function(item,video) {
+ if(item.subs == null || item.subs.length == 0) {
+ return;
+ }
var ext = PathTools.urlExtension(item.subs);
if(client_JsApi.hasSubtitleSupport(ext)) {
return;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage