diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-02-01 14:58:04 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-02-01 14:58:04 +0100 |
| commit | 65d605b17dfc978ebc089b7500a5aacd8fcd863f (patch) | |
| tree | 45b9b6716ba7ff27b302e04925b2952005d510b3 /tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | |
| parent | 992b460912f3100f126bc4db0fe042fd4aefee7c (diff) | |
Improve ffprobe json parsing and don't log error for Codec Type attachment
Diffstat (limited to 'tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs')
| -rw-r--r-- | tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs b/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs deleted file mode 100644 index 97dbb3be0..000000000 --- a/tests/Jellyfin.MediaEncoding.Tests/FFprobeParserTests.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.IO; -using System.Text.Json; -using System.Threading.Tasks; -using Jellyfin.Extensions.Json; -using MediaBrowser.MediaEncoding.Probing; -using MediaBrowser.Model.IO; -using Xunit; - -namespace Jellyfin.MediaEncoding.Tests -{ - public class FFprobeParserTests - { - [Theory] - [InlineData("ffprobe1.json")] - public async Task Test(string fileName) - { - var path = Path.Join("Test Data", fileName); - await using (var stream = AsyncFile.OpenRead(path)) - { - var res = await JsonSerializer.DeserializeAsync<InternalMediaInfoResult>(stream, JsonDefaults.Options).ConfigureAwait(false); - Assert.NotNull(res); - } - } - } -} |
