From e5fdf31ec43cf41ffc34fa69e328242dcc482975 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 5 Oct 2015 12:05:08 -0400 Subject: update subtitle transcoding --- MediaBrowser.Server.Mono/Native/BaseMonoApp.cs | 17 ++++++++++++++++- MediaBrowser.Server.Mono/Native/NativeApp.cs | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Server.Mono/Native') diff --git a/MediaBrowser.Server.Mono/Native/BaseMonoApp.cs b/MediaBrowser.Server.Mono/Native/BaseMonoApp.cs index d0ceb9e09b..8d22dd6bdc 100644 --- a/MediaBrowser.Server.Mono/Native/BaseMonoApp.cs +++ b/MediaBrowser.Server.Mono/Native/BaseMonoApp.cs @@ -13,6 +13,12 @@ namespace MediaBrowser.Server.Mono.Native { public abstract class BaseMonoApp : INativeApp { + protected StartupOptions StartupOptions { get; private set; } + protected BaseMonoApp(StartupOptions startupOptions) + { + StartupOptions = startupOptions; + } + /// /// Shutdowns this instance. /// @@ -111,7 +117,15 @@ namespace MediaBrowser.Server.Mono.Native public bool SupportsLibraryMonitor { - get { return false; } + get + { + if (StartupOptions.ContainsOption("-allowrealtimemonitor")) + { + return true; + } + + return false; + } } public void ConfigureAutoRun(bool autorun) @@ -170,6 +184,7 @@ namespace MediaBrowser.Server.Mono.Native } private Uname _unixName; + private Uname GetUnixName() { if (_unixName == null) diff --git a/MediaBrowser.Server.Mono/Native/NativeApp.cs b/MediaBrowser.Server.Mono/Native/NativeApp.cs index cd1e78e354..500555647f 100644 --- a/MediaBrowser.Server.Mono/Native/NativeApp.cs +++ b/MediaBrowser.Server.Mono/Native/NativeApp.cs @@ -7,6 +7,11 @@ namespace MediaBrowser.Server.Mono.Native /// internal class NativeApp : BaseMonoApp { + public NativeApp(StartupOptions startupOptions) + : base(startupOptions) + { + } + /// /// Shutdowns this instance. /// -- cgit v1.2.3