From f2986681f024a346f4463dff6d08516084034fb7 Mon Sep 17 00:00:00 2001 From: cglatot Date: Tue, 7 Jul 2020 15:36:48 +0100 Subject: Update wording for Other Videos --- js/main.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 8e441b0..9acb82d 100644 --- a/js/main.js +++ b/js/main.js @@ -434,8 +434,15 @@ function getAlphabet(uid, row) { function displayAlphabet(data, row) { const availableAlphabet = data.MediaContainer.Directory; - libraryType = data.MediaContainer.thumb.indexOf('show') > -1 ? "shows" : "movie"; - if (libraryType == "shows") { + if (data.MediaContainer.thumb.indexOf('show') > -1) { libraryType = "shows"; } + else { libraryType = "movie"; } + + if (data.MediaContainer.thumb.indexOf('video') > -1) { + // Update the tab names to "Videos" and "Tracks" + $('#series-tab').html("Videos"); + $('#episodes-tab').html("Tracks"); + $('#libraryTypeTitle').html("Other Videos"); + } else if (libraryType == "shows") { // Update the tab names to "Series" and "Episodes" $('#series-tab').html("Series"); $('#episodes-tab').html("Episodes"); -- cgit v1.2.3