1
0
Fork 0
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:
Luke Pulverenti 2016-11-11 03:13:11 -05:00
parent 6145921372
commit 4eba49c56c

View file

@ -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.';