Skip to content

Commit

Permalink
Fixed 7z FileTypeIdentifierType being in a container
Browse files Browse the repository at this point in the history
  • Loading branch information
DvdKhl committed Jun 10, 2020
1 parent 6c79186 commit e0bf1b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions AVDump3CL/AVDump3CL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<ApplicationIcon>AVD3Icon.ico</ApplicationIcon>
<StartupObject>AVDump3CL.Program</StartupObject>
<AssemblyVersion>3.0.8072.0</AssemblyVersion>
<AssemblyVersion>3.0.8073.0</AssemblyVersion>
<Version>3.0.0</Version>
<Company>extknot</Company>
<Authors>DvdKhl</Authors>
Expand All @@ -16,7 +16,7 @@
<NeutralLanguage>en</NeutralLanguage>
<Copyright>Copyright © 2020 extknot</Copyright>
<Platforms>AnyCPU;x64</Platforms>
<FileVersion>3.0.8072.0</FileVersion>
<FileVersion>3.0.8073.0</FileVersion>
<Configurations>Debug;Release;GithubWorkflow</Configurations>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions AVDump3Lib/AVDump3Lib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<NeutralLanguage>en</NeutralLanguage>
<ApplicationIcon></ApplicationIcon>
<Platforms>AnyCPU;x64</Platforms>
<AssemblyVersion>3.0.8072.0</AssemblyVersion>
<FileVersion>3.0.8072.0</FileVersion>
<AssemblyVersion>3.0.8073.0</AssemblyVersion>
<FileVersion>3.0.8073.0</FileVersion>
<Configurations>Debug;Release;GithubWorkflow</Configurations>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
4 changes: 1 addition & 3 deletions AVDump3Lib/Information/InfoProvider/FormatInfoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit e0bf1b0

Please sign in to comment.