From 4a0cbce5750c2d8d89927bb9458251c7917c9e09 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sat, 25 Jul 2015 11:46:18 -0700 Subject: [PATCH] Use lang_original if subtitle name is empty --- player/videojs.coffee | 2 +- www/js/player.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/player/videojs.coffee b/player/videojs.coffee index 4107bc04..b8d384c3 100644 --- a/player/videojs.coffee +++ b/player/videojs.coffee @@ -73,7 +73,7 @@ window.VideoJSPlayer = class VideoJSPlayer extends Player vid=#{data.meta.gdrive_subtitles.vid}" kind: 'subtitles' srclang: subt.lang - label: subt.name + label: subt.name or subt.lang_original ).appendTo(video) ) diff --git a/www/js/player.js b/www/js/player.js index 4cfc296c..cd8c3927 100644 --- a/www/js/player.js +++ b/www/js/player.js @@ -530,7 +530,7 @@ src: "/gdvtt/" + data.id + "/" + subt.lang + "/" + subt.name + ".vtt?vid=" + data.meta.gdrive_subtitles.vid, kind: 'subtitles', srclang: subt.lang, - label: subt.name + label: subt.name || subt.lang_original }).appendTo(video); }); }