From 263222d8ccc4abd0059e3aa0dd1c66175e12ee33 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sat, 21 Aug 2021 18:17:07 -0600 Subject: [PATCH] Changed method signature. --- FileLiberator/DownloadPdf.cs | 2 +- .../BookLiberation/ProcessorAutomationController.cs | 2 +- LibationWinForms/Form1.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FileLiberator/DownloadPdf.cs b/FileLiberator/DownloadPdf.cs index 356cb13a..0919c841 100644 --- a/FileLiberator/DownloadPdf.cs +++ b/FileLiberator/DownloadPdf.cs @@ -24,7 +24,7 @@ namespace FileLiberator var result = verifyDownload(libraryBook); var liberatedStatus = result.IsSuccess ? LiberatedStatus.Liberated : LiberatedStatus.NotLiberated; - ApplicationServices.LibraryCommands.UpdatePdf(libraryBook, liberatedStatus); + ApplicationServices.LibraryCommands.UpdatePdf(libraryBook.Book, liberatedStatus); return result; } diff --git a/LibationWinForms/BookLiberation/ProcessorAutomationController.cs b/LibationWinForms/BookLiberation/ProcessorAutomationController.cs index 034be1af..820fbc31 100644 --- a/LibationWinForms/BookLiberation/ProcessorAutomationController.cs +++ b/LibationWinForms/BookLiberation/ProcessorAutomationController.cs @@ -246,7 +246,7 @@ $@" Title: {libraryBook.Book.Title} if (dialogResult == SkipResult) { - ApplicationServices.LibraryCommands.UpdateBook(libraryBook, LiberatedStatus.Error); + ApplicationServices.LibraryCommands.UpdateBook(libraryBook.Book, LiberatedStatus.Error); LogMe.Info($"Error. Skip: [{libraryBook.Book.AudibleProductId}] {libraryBook.Book.Title}"); } diff --git a/LibationWinForms/Form1.cs b/LibationWinForms/Form1.cs index a114b094..8a1a1fb5 100644 --- a/LibationWinForms/Form1.cs +++ b/LibationWinForms/Form1.cs @@ -392,7 +392,7 @@ namespace LibationWinForms private async void convertAllM4bToMp3ToolStripMenuItem_Click(object sender, EventArgs e) => await BookLiberation.ProcessorAutomationController.ConvertAllBooksAsync(); - private void updateGridRow(object _, LibraryBook libraryBook) => currProductsGrid.RefreshRow(libraryBook.Book.AudibleProductId); + private void updateGridRow(object _, LibraryBook libraryBook) => currProductsGrid.RefreshLiberatedStatus(libraryBook); #endregion #region Export menu