mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
fix ambiguous method call
This commit is contained in:
@@ -230,7 +230,9 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
|
||||
var collections = user.RootFolder.GetChildren(user, true).ToList();
|
||||
|
||||
var allRecursiveChildren = user.RootFolder.GetRecursiveChildren(user).ToDictionary(i => i.Id);
|
||||
var allRecursiveChildren = user.RootFolder.GetRecursiveChildren(user)
|
||||
.Select(i => i.Id)
|
||||
.ToDictionary(i => i);
|
||||
|
||||
return new LibraryUpdateInfo
|
||||
{
|
||||
@@ -256,7 +258,7 @@ namespace MediaBrowser.Server.Implementations.EntryPoints
|
||||
/// <param name="allRecursiveChildren">All recursive children.</param>
|
||||
/// <param name="includeIfNotFound">if set to <c>true</c> [include if not found].</param>
|
||||
/// <returns>IEnumerable{``0}.</returns>
|
||||
private IEnumerable<T> TranslatePhysicalItemToUserLibrary<T>(T item, User user, IEnumerable<BaseItem> collections, Dictionary<Guid, BaseItem> allRecursiveChildren, bool includeIfNotFound = false)
|
||||
private IEnumerable<T> TranslatePhysicalItemToUserLibrary<T>(T item, User user, IEnumerable<BaseItem> collections, Dictionary<Guid, Guid> allRecursiveChildren, bool includeIfNotFound = false)
|
||||
where T : BaseItem
|
||||
{
|
||||
// If the physical root changed, return the user root
|
||||
|
||||
@@ -95,17 +95,23 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
var version = vals[2];
|
||||
var deviceName = vals.Length > 3 ? vals[3] : string.Empty;
|
||||
|
||||
if (!string.IsNullOrEmpty(deviceName))
|
||||
{
|
||||
_logger.Debug("Logging session activity");
|
||||
await _sessionManager.LogSessionActivity(client, version, deviceId, deviceName, null).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var session = _sessionManager.Sessions
|
||||
.FirstOrDefault(i => string.Equals(i.DeviceId, deviceId) &&
|
||||
string.Equals(i.Client, client) &&
|
||||
string.Equals(i.ApplicationVersion, version));
|
||||
|
||||
if (session == null && !string.IsNullOrEmpty(deviceName))
|
||||
{
|
||||
_logger.Debug("Logging session activity");
|
||||
|
||||
await _sessionManager.LogSessionActivity(client, version, deviceId, deviceName, null).ConfigureAwait(false);
|
||||
|
||||
session = _sessionManager.Sessions
|
||||
.FirstOrDefault(i => string.Equals(i.DeviceId, deviceId) &&
|
||||
string.Equals(i.Client, client) &&
|
||||
string.Equals(i.ApplicationVersion, version));
|
||||
}
|
||||
|
||||
if (session != null)
|
||||
{
|
||||
var controller = new WebSocketController(session, _appHost);
|
||||
|
||||
Reference in New Issue
Block a user