mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Added hint for XML metadata creator to know which kind of
media the image represents.
This commit is contained in:
@@ -360,6 +360,8 @@ namespace DiscImageChef.ImagePlugins
|
||||
|
||||
a2mgImagePath = imagePath;
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1279,6 +1279,8 @@ namespace DiscImageChef.ImagePlugins
|
||||
}
|
||||
}
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
2015-12-05 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* VHD.cs:
|
||||
* Nero.cs:
|
||||
* CDRWin.cs:
|
||||
* Apple2MG.cs:
|
||||
* TeleDisk.cs:
|
||||
* ImageInfo.cs:
|
||||
* DiskCopy42.cs:
|
||||
* ImagePlugin.cs:
|
||||
* ZZZRawImage.cs:
|
||||
Added hint for XML metadata creator to know which kind of
|
||||
media the image represents.
|
||||
|
||||
2015-11-23 Natalia Portillo <claunia@claunia.com>
|
||||
|
||||
* VHD.cs:
|
||||
|
||||
@@ -224,6 +224,8 @@ namespace DiscImageChef.ImagePlugins
|
||||
return false;
|
||||
}
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace DiscImageChef.ImagePlugins
|
||||
public string driveManufacturer;
|
||||
public string driveModel;
|
||||
public string driveSerialNumber;
|
||||
public XmlMediaType xmlMediaType;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -622,6 +622,13 @@ namespace DiscImageChef.ImagePlugins
|
||||
ATAPI_IDENTIFY
|
||||
};
|
||||
|
||||
public enum XmlMediaType
|
||||
{
|
||||
OpticalDisc,
|
||||
BlockMedia,
|
||||
LinearMedia
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Feature is supported by image but not implemented yet.
|
||||
/// </summary>
|
||||
|
||||
@@ -1596,6 +1596,9 @@ namespace DiscImageChef.ImagePlugins
|
||||
|
||||
_imagePath = imagePath;
|
||||
imageStream.Close();
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||
|
||||
return true;
|
||||
}
|
||||
catch
|
||||
|
||||
@@ -580,6 +580,9 @@ namespace DiscImageChef.ImagePlugins
|
||||
ImageInfo.diskType = DecodeTeleDiskDiskType();
|
||||
|
||||
stream.Close();
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -778,6 +778,8 @@ namespace DiscImageChef.ImagePlugins
|
||||
DicConsole.DebugWriteLine("VirtualPC plugin", "Bitmap is {0} sectors", bitmapSize);
|
||||
}
|
||||
|
||||
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||
|
||||
switch (thisFooter.diskType)
|
||||
{
|
||||
case typeFixed:
|
||||
|
||||
@@ -263,6 +263,22 @@ namespace DiscImageChef.ImagePlugins
|
||||
|
||||
ImageInfo.diskType = CalculateDiskType();
|
||||
|
||||
switch (ImageInfo.diskType)
|
||||
{
|
||||
case DiskType.CD:
|
||||
case DiskType.DVDPR:
|
||||
case DiskType.DVDR:
|
||||
case DiskType.DVDRDL:
|
||||
case DiskType.DVDPRDL:
|
||||
case DiskType.BDR:
|
||||
case DiskType.BDRXL:
|
||||
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
|
||||
break;
|
||||
default:
|
||||
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user