diff --git a/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs b/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs index cbce511f..6baf6637 100644 --- a/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs +++ b/AaxDecrypter/UNTESTED/AaxToM4bConverter.cs @@ -62,9 +62,10 @@ namespace AaxDecrypter public Tags tags { get; private set; } public EncodingInfo encodingInfo { get; private set; } - public static async Task CreateAsync(string inputFile, string decryptKey) + public static async Task CreateAsync(string inputFile, string decryptKey, Chapters chapters = null) { var converter = new AaxToM4bConverter(inputFile, decryptKey); + converter.chapters = chapters ?? new AAXChapters(inputFile); await converter.prelimProcessing(); converter.printPrelim(); @@ -98,7 +99,6 @@ namespace AaxDecrypter { tags = new Tags(inputFileName); encodingInfo = new EncodingInfo(inputFileName); - chapters = new AAXChapters(inputFileName); var defaultFilename = Path.Combine( Path.GetDirectoryName(inputFileName), diff --git a/AaxDecrypter/UNTESTED/Chapters.cs b/AaxDecrypter/UNTESTED/Chapters.cs index 10487915..29ec9102 100644 --- a/AaxDecrypter/UNTESTED/Chapters.cs +++ b/AaxDecrypter/UNTESTED/Chapters.cs @@ -17,6 +17,10 @@ namespace AaxDecrypter { _chapterList.Add(chapter); } + protected void AddChapters(IEnumerable chapters) + { + _chapterList.AddRange(chapters); + } public string GenerateFfmpegChapters() { var stringBuilder = new StringBuilder(); diff --git a/LibationLauncher/LibationLauncher.csproj b/LibationLauncher/LibationLauncher.csproj index e97f27d2..5f3caf92 100644 --- a/LibationLauncher/LibationLauncher.csproj +++ b/LibationLauncher/LibationLauncher.csproj @@ -13,7 +13,7 @@ win-x64 - 4.2.4.1 + 4.2.4.3