mirror of
https://github.com/Readarr/Readarr
synced 2026-02-20 13:42:07 +01:00
Fixed: Book files disappearing
This commit is contained in:
parent
3940d4aa28
commit
399ee8d2e7
1 changed files with 2 additions and 3 deletions
|
|
@ -302,9 +302,8 @@ private void MonitorSingleEdition(SortedChildren children)
|
|||
return;
|
||||
}
|
||||
|
||||
var toMonitor = monitored.OrderByDescending(x => _mediaFileService.GetFilesByEdition(x.Id).Count)
|
||||
.ThenByDescending(x => x.Ratings.Popularity)
|
||||
.First();
|
||||
var toMonitor = monitored.OrderByDescending(x => x.Id > 0 ? _mediaFileService.GetFilesByEdition(x.Id).Count : 0)
|
||||
.ThenByDescending(x => x.Ratings.Popularity).First();
|
||||
|
||||
monitored.ForEach(x => x.Monitored = false);
|
||||
toMonitor.Monitored = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue