aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-22 10:57:28 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-22 10:57:28 -0500
commitd9190bb7d8955aba65a08c3b5e95dc67f946a72a (patch)
treea4cdf70a00db9b12da86e489bb4bdce5c14c568a
parentf167777c7b4872f0f3d2be588139c932ca252e4d (diff)
update components
-rw-r--r--MediaBrowser.Server.Mono/MonoAppHost.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Mono/MonoAppHost.cs b/MediaBrowser.Server.Mono/MonoAppHost.cs
index 8def1ca2b..932e2d6cd 100644
--- a/MediaBrowser.Server.Mono/MonoAppHost.cs
+++ b/MediaBrowser.Server.Mono/MonoAppHost.cs
@@ -51,8 +51,11 @@ namespace MediaBrowser.Server.Mono
}
else if (environment.OperatingSystem == Model.System.OperatingSystem.Linux)
{
+ info.FFMpegFilename = "ffmpeg";
+ info.FFProbeFilename = "ffprobe";
info.ArchiveType = "7z";
info.Version = "20160215";
+ info.DownloadUrls = GetDownloadUrls();
}
// No version available - user requirement
@@ -61,6 +64,25 @@ namespace MediaBrowser.Server.Mono
return info;
}
+ private string[] GetDownloadUrls()
+ {
+ switch (EnvironmentInfo.SystemArchitecture)
+ {
+ case Architecture.X64:
+ return new[]
+ {
+ "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-git-20160215-64bit-static.7z"
+ };
+ case Architecture.X86:
+ return new[]
+ {
+ "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-git-20160215-32bit-static.7z"
+ };
+ }
+
+ return new string[] { };
+ }
+
protected override void RestartInternal()
{
MainClass.Restart(StartupOptions);