mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add filters to folder browsing
This commit is contained in:
parent
8d53d9508c
commit
6ac9b1bd2a
9 changed files with 192 additions and 17 deletions
|
@ -125,7 +125,7 @@
|
|||
html += '<p class="itemMiscInfo">' + childText + '</p>';
|
||||
}
|
||||
else {
|
||||
html += '<p class="itemMiscInfo">' + LibraryBrowser.getMiscInfoHtml(item, false) + '</p>';
|
||||
html += '<p class="itemMiscInfo">' + LibraryBrowser.getMiscInfoHtml(item) + '</p>';
|
||||
}
|
||||
|
||||
html += '<p class="userDataIcons">' + LibraryBrowser.getUserDataIconsHtml(item) + '</p>';
|
||||
|
@ -836,12 +836,17 @@
|
|||
return html;
|
||||
},
|
||||
|
||||
getMiscInfoHtml: function (item, includeMediaInfo) {
|
||||
getMiscInfoHtml: function (item) {
|
||||
|
||||
var miscInfo = [];
|
||||
|
||||
if (item.ProductionYear) {
|
||||
miscInfo.push(item.ProductionYear);
|
||||
|
||||
if (item.Status == "Continuing") {
|
||||
miscInfo.push(item.ProductionYear + "-Present");
|
||||
} else {
|
||||
miscInfo.push(item.ProductionYear);
|
||||
}
|
||||
}
|
||||
|
||||
if (item.OfficialRating) {
|
||||
|
@ -857,16 +862,13 @@
|
|||
miscInfo.push(parseInt(minutes) + "min");
|
||||
}
|
||||
|
||||
if (includeMediaInfo !== false) {
|
||||
if (item.DisplayMediaType) {
|
||||
miscInfo.push(item.DisplayMediaType);
|
||||
}
|
||||
|
||||
if (item.VideoFormat && item.VideoFormat !== 'Standard') {
|
||||
miscInfo.push(item.VideoFormat);
|
||||
}
|
||||
if (item.MediaType && item.DisplayMediaType) {
|
||||
miscInfo.push(item.DisplayMediaType);
|
||||
}
|
||||
|
||||
if (item.VideoFormat && item.VideoFormat !== 'Standard') {
|
||||
miscInfo.push(item.VideoFormat);
|
||||
}
|
||||
|
||||
return miscInfo.join(' ');
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue