From e0bf1b03d2443496bbaed3a3a6f7aeb019841bc2 Mon Sep 17 00:00:00 2001 From: David Kohl Date: Wed, 10 Jun 2020 20:45:21 +0200 Subject: [PATCH] Fixed 7z FileTypeIdentifierType being in a container --- AVDump3CL/AVDump3CL.csproj | 4 ++-- AVDump3Lib/AVDump3Lib.csproj | 4 ++-- AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs | 4 +--- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/AVDump3CL/AVDump3CL.csproj b/AVDump3CL/AVDump3CL.csproj index 03773ce..c118c6c 100644 --- a/AVDump3CL/AVDump3CL.csproj +++ b/AVDump3CL/AVDump3CL.csproj @@ -5,7 +5,7 @@ netcoreapp3.1 AVD3Icon.ico AVDump3CL.Program - 3.0.8072.0 + 3.0.8073.0 3.0.0 extknot DvdKhl @@ -16,7 +16,7 @@ en Copyright © 2020 extknot AnyCPU;x64 - 3.0.8072.0 + 3.0.8073.0 Debug;Release;GithubWorkflow enable diff --git a/AVDump3Lib/AVDump3Lib.csproj b/AVDump3Lib/AVDump3Lib.csproj index c9f270d..5291e0b 100644 --- a/AVDump3Lib/AVDump3Lib.csproj +++ b/AVDump3Lib/AVDump3Lib.csproj @@ -13,8 +13,8 @@ en AnyCPU;x64 - 3.0.8072.0 - 3.0.8072.0 + 3.0.8073.0 + 3.0.8073.0 Debug;Release;GithubWorkflow enable diff --git a/AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs b/AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs index 84db800..3a33636 100644 --- a/AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs +++ b/AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs @@ -616,9 +616,7 @@ public class C7zFileType : FileType { public C7zFileType() : base(new byte[] { 0x37, 0x7A, 0xBC, 0xAF, 0x27, 0x1C }, identifier: "compression/7z") => PossibleExtensions = new string[] { "7z" }; public override void AddInfo(MetaDataProvider provider) { if(!string.IsNullOrEmpty(identifier)) { - var container = new MetaInfoContainer(0, fileType); - provider.AddNode(container); - provider.Add(container, MediaProvider.FileTypeIdentifierType, identifier); + provider.Add(MediaProvider.FileTypeIdentifierType, identifier); } } }