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
|
@ -64,7 +64,7 @@
|
|||
var vals = [item.Type, item.Id, item.Name];
|
||||
|
||||
var context = getParameterByName('context');
|
||||
|
||||
|
||||
if (context) {
|
||||
vals.push(vals);
|
||||
}
|
||||
|
@ -188,6 +188,12 @@
|
|||
html += '<label for="radioSongs">Songs (' + result.SongCount + ')</label>';
|
||||
}
|
||||
|
||||
if (result.MusicVideoCount) {
|
||||
|
||||
html += '<input type="radio" name="ibnMusicVideos" id="radioMusicVideos" value="on" data-mini="true">';
|
||||
html += '<label for="radioMusicVideos">Music Videos (' + result.MusicVideoCount + ')</label>';
|
||||
}
|
||||
|
||||
html += '</fieldset>';
|
||||
|
||||
var elem = $('#itemTabs', page).html(html).trigger('create');
|
||||
|
@ -207,6 +213,18 @@
|
|||
|
||||
function bindRadioEvents(page) {
|
||||
|
||||
$("#radioMusicVideos", page).on("click", function () {
|
||||
|
||||
shape = "poster";
|
||||
loadItems(page, {
|
||||
MediaTypes: "",
|
||||
IncludeItemTypes: "MusicVideo",
|
||||
PersonTypes: "",
|
||||
Artists: ""
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$("#radioMovies", page).on("click", function () {
|
||||
|
||||
shape = "poster";
|
||||
|
@ -398,15 +416,15 @@
|
|||
}
|
||||
|
||||
if (query.IncludeItemTypes == "Audio") {
|
||||
|
||||
|
||||
html += LibraryBrowser.getSongTableHtml(result.Items, {
|
||||
showAlbum: true,
|
||||
showArtist: true
|
||||
});
|
||||
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
html += LibraryBrowser.getPosterDetailViewHtml({
|
||||
items: result.Items,
|
||||
preferBackdrop: shape == "backdrop",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue