mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Check if output format supports all disc tags we have retrieved so far.
This commit is contained in:
@@ -631,6 +631,26 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
mediaTags.Add(MediaTagType.CD_TEXT, tmpBuf);
|
mediaTags.Add(MediaTagType.CD_TEXT, tmpBuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if output format supports all disc tags we have retrieved so far
|
||||||
|
foreach(MediaTagType tag in mediaTags.Keys)
|
||||||
|
{
|
||||||
|
if(outputPlugin.SupportedMediaTags.Contains(tag))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if(!force)
|
||||||
|
{
|
||||||
|
dumpLog.WriteLine("Output format does not support {0}, continuing...", tag);
|
||||||
|
ErrorMessage?.Invoke($"Output format does not support {tag}, continuing...");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dumpLog.WriteLine("Output format does not support {0}, not continuing...", tag);
|
||||||
|
StoppingErrorMessage?.Invoke($"Output format does not support {tag}, not continuing...");
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(leadOutStarts.Any())
|
if(leadOutStarts.Any())
|
||||||
{
|
{
|
||||||
UpdateStatus?.Invoke("Solving lead-outs...");
|
UpdateStatus?.Invoke("Solving lead-outs...");
|
||||||
@@ -845,26 +865,6 @@ namespace DiscImageChef.Core.Devices.Dumping
|
|||||||
if(MMC.IsVideoNowColor(videoNowColorFrame))
|
if(MMC.IsVideoNowColor(videoNowColorFrame))
|
||||||
dskType = MediaType.VideoNowColor;
|
dskType = MediaType.VideoNowColor;
|
||||||
|
|
||||||
// Check if output format supports all disc tags we have retrieved so far
|
|
||||||
foreach(MediaTagType tag in mediaTags.Keys)
|
|
||||||
{
|
|
||||||
if(outputPlugin.SupportedMediaTags.Contains(tag))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if(!force)
|
|
||||||
{
|
|
||||||
dumpLog.WriteLine("Output format does not support {0}, continuing...", tag);
|
|
||||||
ErrorMessage?.Invoke($"Output format does not support {tag}, continuing...");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
dumpLog.WriteLine("Output format does not support {0}, not continuing...", tag);
|
|
||||||
StoppingErrorMessage?.Invoke($"Output format does not support {tag}, not continuing...");
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check mode for tracks
|
// Check mode for tracks
|
||||||
for(int t = 0; t < tracks.Length; t++)
|
for(int t = 0; t < tracks.Length; t++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user