diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index ac517e10c6..7475617c93 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -10,6 +10,17 @@
"${workspaceFolder}/Jellyfin.Server/Jellyfin.Server.csproj"
],
"problemMatcher": "$msCompile"
+ },
+ {
+ "label": "api tests",
+ "command": "dotnet",
+ "type": "process",
+ "args": [
+ "test",
+ "${workspaceFolder}/tests/MediaBrowser.Api.Tests/MediaBrowser.Api.Tests.csproj"
+ ],
+ "problemMatcher": "$msCompile"
}
+
]
-}
\ No newline at end of file
+}
diff --git a/Emby.Server.Implementations/Library/LibraryManager.cs b/Emby.Server.Implementations/Library/LibraryManager.cs
index c31fd5bf98..e1cb282ccb 100644
--- a/Emby.Server.Implementations/Library/LibraryManager.cs
+++ b/Emby.Server.Implementations/Library/LibraryManager.cs
@@ -111,12 +111,6 @@ namespace Emby.Server.Implementations.Library
/// The comparers.
private IBaseItemComparer[] Comparers { get; set; }
- ///
- /// Gets or sets the active item repository
- ///
- /// The item repository.
- public IItemRepository ItemRepository { get; set; }
-
///
/// Gets or sets the active image processor
///
@@ -1843,7 +1837,7 @@ namespace Emby.Server.Implementations.Library
x.Hash = blurhash;
});
- ItemRepository.SaveImages(item);
+ _itemRepository.SaveImages(item);
RegisterItem(item);
}
@@ -1918,7 +1912,7 @@ namespace Emby.Server.Implementations.Library
{
Task.Run(() =>
{
- var items = ItemRepository.GetItemList(new InternalItemsQuery {
+ var items = _itemRepository.GetItemList(new InternalItemsQuery {
Recursive = true
});
foreach (var item in items)