mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update core projects
This commit is contained in:
parent
6145921372
commit
4eba49c56c
1 changed files with 6 additions and 4 deletions
|
@ -11,13 +11,15 @@
|
||||||
|
|
||||||
ApiClient.getSystemInfo().then(function (systemInfo) {
|
ApiClient.getSystemInfo().then(function (systemInfo) {
|
||||||
|
|
||||||
if (systemInfo.OperatingSystem == 'Windows') {
|
var operatingSystem = systemInfo.OperatingSystem.toLowerCase();
|
||||||
|
|
||||||
|
if (operatingSystem == 'windows') {
|
||||||
view.querySelector('.fldSelectEncoderPathType').classList.add('hide');
|
view.querySelector('.fldSelectEncoderPathType').classList.add('hide');
|
||||||
} else {
|
} else {
|
||||||
view.querySelector('.fldSelectEncoderPathType').classList.remove('hide');
|
view.querySelector('.fldSelectEncoderPathType').classList.remove('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (systemInfo.OperatingSystem == 'Windows' && systemInfo.SystemArchitecture != 'Arm') {
|
if (operatingSystem == 'windows' && systemInfo.SystemArchitecture != 'Arm') {
|
||||||
|
|
||||||
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="https://ffmpeg.zeranoe.com/builds">https://ffmpeg.zeranoe.com</a>');
|
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="https://ffmpeg.zeranoe.com/builds">https://ffmpeg.zeranoe.com</a>');
|
||||||
|
|
||||||
|
@ -28,7 +30,7 @@
|
||||||
instructions = 'Download FFmpeg 64-Bit Static';
|
instructions = 'Download FFmpeg 64-Bit Static';
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (systemInfo.OperatingSystem == 'Linux' && systemInfo.SystemArchitecture != 'Arm') {
|
} else if (operatingSystem == 'linux') {
|
||||||
|
|
||||||
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="http://johnvansickle.com/ffmpeg">http://johnvansickle.com/ffmpeg</a>');
|
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="http://johnvansickle.com/ffmpeg">http://johnvansickle.com/ffmpeg</a>');
|
||||||
|
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
instructions = 'Download x86_64 build';
|
instructions = 'Download x86_64 build';
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (systemInfo.OperatingSystem == 'Osx' && systemInfo.SystemArchitecture == 'X64') {
|
} else if (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>');
|
view.querySelector('.suggestedLocation').innerHTML = Globalize.translate('FFmpegSuggestedDownload', '<a target="_blank" href="http://evermeet.cx/ffmpeg">http://evermeet.cx/ffmpeg</a>');
|
||||||
instructions = 'Download both ffmpeg and ffprobe, and extract them to the same folder.';
|
instructions = 'Download both ffmpeg and ffprobe, and extract them to the same folder.';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue