Set metadata on dump.

This commit is contained in:
2020-01-09 18:01:43 +00:00
parent 5e0b86af82
commit a87c5b24aa
7 changed files with 79 additions and 2 deletions

View File

@@ -48,6 +48,7 @@ using DiscImageChef.Devices;
using Schemas;
using PlatformID = DiscImageChef.CommonTypes.Interop.PlatformID;
using TrackType = DiscImageChef.CommonTypes.Enums.TrackType;
using Version = DiscImageChef.CommonTypes.Interop.Version;
// ReSharper disable JoinDeclarationAndInitializer
// ReSharper disable InlineOutVariableDeclaration
@@ -1036,6 +1037,16 @@ namespace DiscImageChef.Core.Devices.Dumping
currentTry.Extents = ExtentsConverter.ToMetadata(extents);
// TODO: Disc ID
var metadata = new CommonTypes.Structs.ImageInfo
{
Application = "DiscImageChef", ApplicationVersion = Version.GetVersion()
};
if(!_outputPlugin.SetMetadata(metadata))
ErrorMessage?.Invoke("Error {0} setting metadata, continuing..." + Environment.NewLine +
_outputPlugin.ErrorMessage);
_outputPlugin.SetDumpHardware(_resume.Tries);
if(_preSidecar != null)