mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #296 - Prevent non-movie videos from appearing in Movies view
This commit is contained in:
parent
a3e75d5502
commit
8a7dffff51
16 changed files with 494 additions and 25 deletions
|
@ -70,7 +70,7 @@
|
|||
if (item.Type == "Movie" || item.Type == "Trailer" || item.Type == "BoxSet") {
|
||||
return "movies";
|
||||
}
|
||||
if (item.Type == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist" || item.Type == "Artist") {
|
||||
if (item.Type == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist" || item.Type == "Artist" || item.Type == "MusicVideo") {
|
||||
return "music";
|
||||
}
|
||||
if (item.MediaType == "Game") {
|
||||
|
@ -87,6 +87,10 @@
|
|||
$('#albumTabs', page).show();
|
||||
}
|
||||
|
||||
if (item.Type == "MusicVideo") {
|
||||
$('#musicVideoTabs', page).show();
|
||||
}
|
||||
|
||||
if (item.Type == "Audio") {
|
||||
$('#songTabs', page).show();
|
||||
}
|
||||
|
@ -435,7 +439,7 @@
|
|||
|
||||
function renderCriticReviews(page, item, limit) {
|
||||
|
||||
if (item.Type != "Movie" && item.Type != "Trailer") {
|
||||
if (item.Type != "Movie" && item.Type != "Trailer" && item.Type != "MusicVideo") {
|
||||
$('#criticReviewsCollapsible', page).hide();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue