mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Added SupportsAutoRunAtStartup
This commit is contained in:
parent
669c832ce6
commit
6e5adce35c
7 changed files with 230 additions and 23 deletions
|
@ -391,8 +391,8 @@
|
|||
html += LibraryBrowser.getSongHeaderCellHtml('Album', '', options.enableColumnSorting, 'Album,SortName', options.sortBy, options.sortOrder);
|
||||
}
|
||||
if (options.showArtist) {
|
||||
html += LibraryBrowser.getSongHeaderCellHtml('Album Artist', 'tabletColumn', options.enableColumnSorting, 'AlbumArtist,Album,SortName', options.sortBy, options.sortOrder);
|
||||
html += LibraryBrowser.getSongHeaderCellHtml('Artist', '', options.enableColumnSorting, 'Artist,Album,SortName', options.sortBy, options.sortOrder);
|
||||
html += LibraryBrowser.getSongHeaderCellHtml('Album Artist', 'tabletColumn', options.enableColumnSorting, 'AlbumArtist,Album,SortName', options.sortBy, options.sortOrder);
|
||||
}
|
||||
|
||||
html += LibraryBrowser.getSongHeaderCellHtml('Runtime', 'tabletColumn', options.enableColumnSorting, 'Runtime,AlbumArtist,Album,SortName', options.sortBy, options.sortOrder);
|
||||
|
@ -427,17 +427,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (options.showArtist) {
|
||||
|
||||
if (item.AlbumArtist) {
|
||||
|
||||
html += '<td class="tabletColumn"><a href="itembynamedetails.html?context=music&musicartist=' + ApiClient.encodeName(item.AlbumArtist) + '">' + item.AlbumArtist + '</a></td>';
|
||||
|
||||
} else {
|
||||
html += '<td class="tabletColumn"></td>';
|
||||
}
|
||||
}
|
||||
|
||||
if (options.showArtist) {
|
||||
|
||||
if (item.Artists && item.Artists.length) {
|
||||
|
@ -451,6 +440,17 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (options.showArtist) {
|
||||
|
||||
if (item.AlbumArtist) {
|
||||
|
||||
html += '<td class="tabletColumn">' + LibraryBrowser.getArtistLinksHtml([item.AlbumArtist]) + '</td>';
|
||||
|
||||
} else {
|
||||
html += '<td class="tabletColumn"></td>';
|
||||
}
|
||||
}
|
||||
|
||||
var time = Dashboard.getDisplayTime(item.RunTimeTicks || 0);
|
||||
|
||||
html += '<td class="tabletColumn">' + time + '</td>';
|
||||
|
@ -668,7 +668,7 @@
|
|||
var html = "";
|
||||
|
||||
var primaryImageAspectRatio = options.useAverageAspectRatio || options.shape == 'auto' ? LibraryBrowser.getAveragePrimaryImageAspectRatio(items) : null;
|
||||
|
||||
|
||||
if (options.shape == 'auto') {
|
||||
|
||||
if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.777777778) < .3) {
|
||||
|
@ -681,7 +681,7 @@
|
|||
options.shape = 'portrait';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!options.useAverageAspectRatio) {
|
||||
primaryImageAspectRatio = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue