diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-04-15 11:09:14 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-04-15 11:09:14 +0200 |
| commit | fc049caba2ed4db499bd53a2e521550bc45b6ebe (patch) | |
| tree | 95c4870cda0783f51dd8207a86fd5ae906054f77 /MediaBrowser.Model | |
| parent | 9cca964b0880dc41792fe27ee03e69609ff2ac7e (diff) | |
| parent | 2eb5775ee3fc0bd98f88e7208798dec4aa63c724 (diff) | |
Merge branch 'master' into nullable3
Diffstat (limited to 'MediaBrowser.Model')
| -rw-r--r-- | MediaBrowser.Model/Diagnostics/IProcess.cs | 31 | ||||
| -rw-r--r-- | MediaBrowser.Model/Diagnostics/IProcessFactory.cs | 35 | ||||
| -rw-r--r-- | MediaBrowser.Model/Dlna/DirectPlayProfile.cs | 4 | ||||
| -rw-r--r-- | MediaBrowser.Model/Entities/ExtraType.cs | 1 | ||||
| -rw-r--r-- | MediaBrowser.Model/MediaBrowser.Model.csproj | 2 |
5 files changed, 4 insertions, 69 deletions
diff --git a/MediaBrowser.Model/Diagnostics/IProcess.cs b/MediaBrowser.Model/Diagnostics/IProcess.cs deleted file mode 100644 index c067189a6..000000000 --- a/MediaBrowser.Model/Diagnostics/IProcess.cs +++ /dev/null @@ -1,31 +0,0 @@ -#pragma warning disable CS1591 - -using System; -using System.IO; -using System.Threading.Tasks; - -namespace MediaBrowser.Model.Diagnostics -{ - public interface IProcess : IDisposable - { - event EventHandler Exited; - - void Kill(); - - bool WaitForExit(int timeMs); - - Task<bool> WaitForExitAsync(int timeMs); - - int ExitCode { get; } - - void Start(); - - StreamWriter StandardInput { get; } - - StreamReader StandardError { get; } - - StreamReader StandardOutput { get; } - - ProcessOptions StartInfo { get; } - } -} diff --git a/MediaBrowser.Model/Diagnostics/IProcessFactory.cs b/MediaBrowser.Model/Diagnostics/IProcessFactory.cs deleted file mode 100644 index 2d15aed7e..000000000 --- a/MediaBrowser.Model/Diagnostics/IProcessFactory.cs +++ /dev/null @@ -1,35 +0,0 @@ -#nullable disable -#pragma warning disable CS1591 - -namespace MediaBrowser.Model.Diagnostics -{ - public interface IProcessFactory - { - IProcess Create(ProcessOptions options); - } - - public class ProcessOptions - { - public string FileName { get; set; } - - public string Arguments { get; set; } - - public string WorkingDirectory { get; set; } - - public bool CreateNoWindow { get; set; } - - public bool UseShellExecute { get; set; } - - public bool EnableRaisingEvents { get; set; } - - public bool ErrorDialog { get; set; } - - public bool RedirectStandardError { get; set; } - - public bool RedirectStandardInput { get; set; } - - public bool RedirectStandardOutput { get; set; } - - public bool IsHidden { get; set; } - } -} diff --git a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs index 6f4b4ab1b..88cb83991 100644 --- a/MediaBrowser.Model/Dlna/DirectPlayProfile.cs +++ b/MediaBrowser.Model/Dlna/DirectPlayProfile.cs @@ -26,12 +26,12 @@ namespace MediaBrowser.Model.Dlna public bool SupportsVideoCodec(string codec) { - return ContainerProfile.ContainsContainer(VideoCodec, codec); + return Type == DlnaProfileType.Video && ContainerProfile.ContainsContainer(VideoCodec, codec); } public bool SupportsAudioCodec(string codec) { - return ContainerProfile.ContainsContainer(AudioCodec, codec); + return (Type == DlnaProfileType.Audio || Type == DlnaProfileType.Video) && ContainerProfile.ContainsContainer(AudioCodec, codec); } } } diff --git a/MediaBrowser.Model/Entities/ExtraType.cs b/MediaBrowser.Model/Entities/ExtraType.cs index 857e92adb..aca4bd282 100644 --- a/MediaBrowser.Model/Entities/ExtraType.cs +++ b/MediaBrowser.Model/Entities/ExtraType.cs @@ -4,6 +4,7 @@ namespace MediaBrowser.Model.Entities { public enum ExtraType { + Unknown = 0, Clip = 1, Trailer = 2, BehindTheScenes = 3, diff --git a/MediaBrowser.Model/MediaBrowser.Model.csproj b/MediaBrowser.Model/MediaBrowser.Model.csproj index b24409fcc..eb306906d 100644 --- a/MediaBrowser.Model/MediaBrowser.Model.csproj +++ b/MediaBrowser.Model/MediaBrowser.Model.csproj @@ -20,7 +20,7 @@ <PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.3" /> <PackageReference Include="System.Globalization" Version="4.3.0" /> - <PackageReference Include="System.Text.Json" Version="4.7.0" /> + <PackageReference Include="System.Text.Json" Version="4.7.1" /> </ItemGroup> <ItemGroup> |
