mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix duplicates in suggestions
This commit is contained in:
parent
f475aae5f0
commit
9b8cb284fb
2 changed files with 12 additions and 7 deletions
|
@ -725,19 +725,13 @@
|
|||
}
|
||||
|
||||
var shape = item.Type == "MusicAlbum" || item.Type == "MusicArtist" ? getSquareShape() : getPortraitShape();
|
||||
var screenWidth = window.innerWidth;
|
||||
var screenHeight = window.innerHeight;
|
||||
|
||||
var options = {
|
||||
userId: Dashboard.getCurrentUserId(),
|
||||
limit: screenWidth > 800 && shape == "detailPagePortrait" ? 4 : 4,
|
||||
limit: 8,
|
||||
fields: "PrimaryImageAspectRatio,UserData,SyncInfo,CanDelete"
|
||||
};
|
||||
|
||||
if (screenWidth >= 800 && screenHeight >= 1000) {
|
||||
options.limit *= 2;
|
||||
}
|
||||
|
||||
if (enableScrollX()) {
|
||||
options.limit = 12;
|
||||
}
|
||||
|
|
|
@ -24,6 +24,17 @@
|
|||
|
||||
view.querySelector('.downloadInstructions').innerHTML = instructions;
|
||||
|
||||
} else if (systemInfo.OperatingSystem == 'Linux' && systemInfo.SystemArchitecture != 'Arm') {
|
||||
|
||||
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="http://johnvansickle.com/ffmpeg">http://johnvansickle.com/ffmpeg</a>');
|
||||
if (systemInfo.SystemArchitecture == 'X86') {
|
||||
instructions = 'Download x86 build';
|
||||
}
|
||||
else if (systemInfo.SystemArchitecture == 'X64') {
|
||||
instructions = 'Download x86_64 build';
|
||||
}
|
||||
view.querySelector('.downloadInstructions').innerHTML = instructions;
|
||||
|
||||
} else if (systemInfo.OperatingSystem == 'Osx' && systemInfo.SystemArchitecture == 'X64') {
|
||||
|
||||
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="http://evermeet.cx/ffmpeg">http://evermeet.cx/ffmpeg</a>');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue