From 510ed955909907989f7291bd98de9ff503bcb2d7 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 7 May 2022 21:42:23 -0600 Subject: [PATCH] Remove 500ms headroom --- FileLiberator/DownloadDecryptBook.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/FileLiberator/DownloadDecryptBook.cs b/FileLiberator/DownloadDecryptBook.cs index 3c71fe01..ac342a8b 100644 --- a/FileLiberator/DownloadDecryptBook.cs +++ b/FileLiberator/DownloadDecryptBook.cs @@ -112,8 +112,7 @@ namespace FileLiberator audiobookDlLic.TrimOutputToChapterLength = config.StripAudibleBrandAudio; long startMs = config.StripAudibleBrandAudio ? - contentLic.ContentMetadata.ChapterInfo.BrandIntroDurationMs : - 0; + contentLic.ContentMetadata.ChapterInfo.BrandIntroDurationMs : 0; if (config.AllowLibationFixup || outputFormat == OutputFormat.Mp3) { @@ -128,7 +127,7 @@ namespace FileLiberator chapLenMs -= startMs; if (config.StripAudibleBrandAudio && i == contentLic.ContentMetadata.ChapterInfo.Chapters.Length - 1) - chapLenMs -= contentLic.ContentMetadata.ChapterInfo.BrandOutroDurationMs + 500; //A little more headroom at the end of the file (500 ms) + chapLenMs -= contentLic.ContentMetadata.ChapterInfo.BrandOutroDurationMs; audiobookDlLic.ChapterInfo.AddChapter(chapter.Title, TimeSpan.FromMilliseconds(chapLenMs)); }