if (mainWindow.Check_ChapterMarkers.Checked)\r
{\r
\r
- if (source_name != "Click 'Browse' to continue")\r
+ if (source_name.Trim().Replace("-i ", "") != "Click \'Browse\' to continue")\r
{\r
if (source_title != "Automatic")\r
{\r
}\r
else\r
{\r
- string path = Path.Combine(Path.GetTempPath(), "chapters.csv");\r
- ChapterMarkers = " --markers=" + "\"" + path + "\"";\r
+ string filename = source_name + "-chapters.csv";\r
+ string path = Path.Combine(Path.GetTempPath(), filename);\r
+\r
+ Boolean saveCSV = chapterCSVSave(mainWindow, path);\r
+ if (saveCSV == false)\r
+ ChapterMarkers = " -m ";\r
+ else\r
+ {\r
+ ChapterMarkers = " --markers=" + "\"" + path + "\"";\r
+ }\r
}\r
}\r
else\r