diff --git a/src/ui/Forms/ExportPngXml.cs b/src/ui/Forms/ExportPngXml.cs
index e848d6570..d2aa1134c 100644
--- a/src/ui/Forms/ExportPngXml.cs
+++ b/src/ui/Forms/ExportPngXml.cs
@@ -986,21 +986,20 @@ namespace Nikse.SubtitleEdit.Forms
var doc = new XmlDocument();
var guid = Guid.NewGuid().ToString().RemoveChar('-').Insert(8, "-").Insert(13, "-").Insert(18, "-").Insert(23, "-");
var xml =
- "" + Environment.NewLine +
- " urn:uuid:" + guid + "" + Environment.NewLine +
- " " + Environment.NewLine +
- " This is a subtitle file" + Environment.NewLine +
- " 2014-01-01T00:00:00.000-00:00" + Environment.NewLine +
- " 1" + Environment.NewLine +
- " en" + Environment.NewLine +
- " [FRAMERATE] 1" + Environment.NewLine +
- " [FRAMERATE]" + Environment.NewLine +
- " 00:00:00:00 " + Environment.NewLine +
- " urn:uuid:3dec6dc0-39d0-498d-97d0-928d2eb78391" + Environment.NewLine +
- " " + Environment.NewLine +
+ "" + Environment.NewLine +
+ " urn:uuid:" + guid + "" + Environment.NewLine +
+ " Movie Title" + Environment.NewLine +
+ " This is a subtitle file" + Environment.NewLine +
+ " " + DateTime.Now.ToString("o") + "" + Environment.NewLine +
+ " 1" + Environment.NewLine +
+ " en" + Environment.NewLine +
+ " [FRAMERATE] 1" + Environment.NewLine +
+ " [FRAMERATE]" + Environment.NewLine +
+ " 00:00:00:00" + Environment.NewLine +
+ " " + Environment.NewLine +
sb +
- " " + Environment.NewLine +
- "";
+ " " + Environment.NewLine +
+ "";
xml = xml.Replace("[FRAMERATE]", ((int)FrameRate).ToString(CultureInfo.InvariantCulture));
@@ -1847,8 +1846,9 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
{
if (!param.Saved)
{
- string numberString = $"{i:0000}";
- string fileName = Path.Combine(Path.GetDirectoryName(saveFileDialog1.FileName), numberString + ".png");
+ // string numberString = $"{i:0000}";
+ string uuidString = Guid.NewGuid().ToString().RemoveChar('-').Insert(8, "-").Insert(13, "-").Insert(18, "-").Insert(23, "-");
+ string fileName = Path.Combine(Path.GetDirectoryName(saveFileDialog1.FileName), uuidString + ".png");
param.Bitmap.Save(fileName, ImageFormat.Png);
imagesSavedCount++;
param.Saved = true;
@@ -1901,14 +1901,14 @@ $DROP=[DROPVALUE]" + Environment.NewLine + Environment.NewLine +
break;
}
- sb.AppendLine("");
+ sb.AppendLine("");
if (param.Depth3D == 0)
{
- sb.AppendLine("" + numberString + ".png" + "");
+ sb.AppendLine("urn:uuid:" + uuidString + "");
}
else
{
- sb.AppendLine("" + numberString + ".png" + "");
+ sb.AppendLine("urn:uuid:" + uuidString + "");
}
sb.AppendLine("");