aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcglatot <[email protected]>2020-07-07 15:38:20 +0100
committerGitHub <[email protected]>2020-07-07 15:38:20 +0100
commit52b184037ec6f21330175193726a21cce152a125 (patch)
treec0ea732fc495e43f5a33ae8b0cc293120722576d
parentc55e6976c621a22af7fad525b7131ff6fa095838 (diff)
parentf2986681f024a346f4463dff6d08516084034fb7 (diff)
downloadpasta-52b184037ec6f21330175193726a21cce152a125.tar.gz
pasta-52b184037ec6f21330175193726a21cce152a125.zip
Merge pull request #19 from cglatot/support-other-videos1.4
Update wording for Other Videos
-rw-r--r--js/main.js11
1 files 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");