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 /res | |
| parent | 8b16bfc888e801cf3f8d57378459f59b382388fa (diff) | |
Better subs check
Diffstat (limited to 'res')
| -rw-r--r-- | res/client.js | 3 |
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; |
