Fix liberater pdf command marking book as unliberated (#2088)

This commit is contained in:
Michael Bucari-Tovo committed 2026-10-26 09:49:37 -06:00
1 parent f61bbe5b68
commit c99edae0ac
1 file changed
+2 -1
@@ -228,7 +228,8 @@ public class LiberateOptions : ProcessableOptionsBase
// Targeted runs (explicit ASIN/id) always re-download. --force is for re-downloading the whole library.
if (Force || isTargetedRun)
{
lb.Book.UserDefinedItem.BookStatus = LiberatedStatus.NotLiberated;
if (!PdfOnly)
lb.Book.UserDefinedItem.BookStatus = LiberatedStatus.NotLiberated;
lb.Book.UserDefinedItem.SetPdfStatus(LiberatedStatus.NotLiberated);
// The status above is set on an untracked copy, so the central clear in updateUserDefinedItem