mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-12-06 15:54:41 +01:00
Clean up queries
Use .NET 10 extensions Refactor some extensions for clarity
This commit is contained in:
1 parent
e9016ace03
commit
29501bddf3
5 files changed
+110
-111
No files matched your search
@@ -96,7 +96,7 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
if (!IsBooksDirectoryValid(config))
|
||||
return false;
|
||||
|
||||
var needsPdf = libraryBooks.Where(lb => lb.NeedsPdfDownload()).ToArray();
|
||||
var needsPdf = libraryBooks.Where(lb => lb.NeedsPdfDownload).ToArray();
|
||||
if (needsPdf.Length > 0)
|
||||
{
|
||||
Serilog.Log.Logger.Information("Begin download {count} pdfs", needsPdf.Length);
|
||||
@@ -137,14 +137,14 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
|
||||
if (item.AbsentFromLastScan)
|
||||
return false;
|
||||
else if (item.NeedsBookDownload())
|
||||
else if (item.NeedsBookDownload)
|
||||
{
|
||||
RemoveCompleted(item);
|
||||
Serilog.Log.Logger.Information("Begin single library book backup of {libraryBook}", item);
|
||||
AddDownloadDecrypt([item], config);
|
||||
return true;
|
||||
}
|
||||
else if (item.NeedsPdfDownload())
|
||||
else if (item.NeedsPdfDownload)
|
||||
{
|
||||
RemoveCompleted(item);
|
||||
Serilog.Log.Logger.Information("Begin single pdf backup of {libraryBook}", item);
|
||||
|
||||
Reference in new issue
Block a user