aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/LibraryService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
-rw-r--r--MediaBrowser.Api/Library/LibraryService.cs17
1 files changed, 9 insertions, 8 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs
index a54640b2f..783fc6073 100644
--- a/MediaBrowser.Api/Library/LibraryService.cs
+++ b/MediaBrowser.Api/Library/LibraryService.cs
@@ -755,17 +755,18 @@ namespace MediaBrowser.Api.Library
});
}
- private void LogDownload(BaseItem item, User user, AuthorizationInfo auth)
+ private void LogDownload(BaseItem item, Jellyfin.Data.Entities.User user, AuthorizationInfo auth)
{
try
{
- _activityManager.Create(new ActivityLogEntry
+ _activityManager.Create(new Jellyfin.Data.Entities.ActivityLog(
+ string.Format(_localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Username, item.Name),
+ "UserDownloadingContent",
+ auth.UserId,
+ DateTime.UtcNow,
+ LogLevel.Trace)
{
- Name = string.Format(_localization.GetLocalizedString("UserDownloadingItemWithValues"), user.Name, item.Name),
- Type = "UserDownloadingContent",
ShortOverview = string.Format(_localization.GetLocalizedString("AppDeviceValues"), auth.Client, auth.Device),
- UserId = auth.UserId
-
});
}
catch
@@ -839,7 +840,7 @@ namespace MediaBrowser.Api.Library
return baseItemDtos;
}
- private BaseItem TranslateParentItem(BaseItem item, User user)
+ private BaseItem TranslateParentItem(BaseItem item, Jellyfin.Data.Entities.User user)
{
return item.GetParent() is AggregateFolder
? _libraryManager.GetUserRootFolder().GetChildren(user, true)
@@ -881,7 +882,7 @@ namespace MediaBrowser.Api.Library
return ToOptimizedResult(counts);
}
- private int GetCount(Type type, User user, GetItemCounts request)
+ private int GetCount(Type type, Jellyfin.Data.Entities.User user, GetItemCounts request)
{
var query = new InternalItemsQuery(user)
{