mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-05 08:14:21 +00:00
Fixed: Book files disappearing
This commit is contained in:
@@ -302,9 +302,8 @@ namespace NzbDrone.Core.Books
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user