Split BaseItemRepository and IItemRepository

This commit is contained in:
Shadowghost
2026-03-07 20:12:42 +01:00
parent 268f23f39a
commit 077fa89717
24 changed files with 5034 additions and 4495 deletions

View File

@@ -489,6 +489,8 @@ namespace MediaBrowser.Controller.Entities
public static IItemRepository ItemRepository { get; set; }
public static IItemCountService ItemCountService { get; set; }
public static IChapterManager ChapterManager { get; set; }
public static IFileSystem FileSystem { get; set; }

View File

@@ -1883,11 +1883,11 @@ namespace MediaBrowser.Controller.Entities
if (LinkedChildren.Length > 0)
{
(playedCount, totalCount) = ItemRepository.GetPlayedAndTotalCountFromLinkedChildren(query, Id);
(playedCount, totalCount) = ItemCountService.GetPlayedAndTotalCountFromLinkedChildren(query, Id);
}
else
{
(playedCount, totalCount) = ItemRepository.GetPlayedAndTotalCount(query, Id);
(playedCount, totalCount) = ItemCountService.GetPlayedAndTotalCount(query, Id);
}
}