mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-02-19 07:50:47 +01:00
Improve comvert to mp3 task
- Improve progress reporting and cancellation performance - Clear current book from queue before queueing single convert to mp3 task
This commit is contained in:
@@ -111,6 +111,8 @@ public class ProcessQueueViewModel : ReactiveObject
|
||||
var preLiberated = libraryBooks.Where(lb => !lb.AbsentFromLastScan && lb.Book.UserDefinedItem.BookStatus is LiberatedStatus.Liberated && lb.Book.ContentType is DataLayer.ContentType.Product).ToArray();
|
||||
if (preLiberated.Length > 0)
|
||||
{
|
||||
if (preLiberated.Length == 1)
|
||||
RemoveCompleted(preLiberated[0]);
|
||||
Serilog.Log.Logger.Information("Begin convert {count} books to mp3", preLiberated.Length);
|
||||
AddConvertMp3(preLiberated);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user