mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 15:28:28 +01:00
update subtitle transcoding
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shutdowns this instance.
|
||||
/// </summary>
|
||||
@@ -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)
|
||||
|
||||
@@ -7,6 +7,11 @@ namespace MediaBrowser.Server.Mono.Native
|
||||
/// </summary>
|
||||
internal class NativeApp : BaseMonoApp
|
||||
{
|
||||
public NativeApp(StartupOptions startupOptions)
|
||||
: base(startupOptions)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shutdowns this instance.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user