ScanLibrary now respects the library a series belongs to, doesn't reset series every run but updates/removes/inserts as needed.

This commit is contained in:
Joseph Milazzo 2021-01-19 14:35:24 -06:00
parent 44ebca36ec
commit e180032a8e
5 changed files with 54 additions and 29 deletions

View file

@ -81,6 +81,7 @@ namespace API.Data
return await _context.Library
.Where(x => x.Id == libraryId)
.Include(f => f.Folders)
.Include(l => l.Series)
.SingleAsync();
}