The Free Software Media System - Server Backend & API
update translations
Luke Pulverentib92c31ce827c
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.csindex 300b67ae2f..a20fb67b29 100644--- a/Emby.Server.Implementations/Session/SessionManager.cs+++ b/Emby.Server.Implementations/Session/SessionManager.cs@@ -820,6 +820,17 @@ namespace Emby.Server.Implementations.Session}}+ if (info.Item != null)+ {+ var msString = info.PositionTicks.HasValue ? (info.PositionTicks.Value / 10000).ToString(CultureInfo.InvariantCulture) : "unknown";++ _logger.Info("Playback stopped reported by app {0} {1} playing {2}. Stopped at {3} ms",+ session.Client,+ session.ApplicationVersion,+ info.Item.Name,+ msString);+ }+RemoveNowPlayingItem(session);var users = GetUsers(session);@@ -874,7 +885,7 @@ namespace Emby.Server.Implementations.Session{playedToCompletion = _userDataManager.UpdatePlayState(item, data, positionTicks.Value);}- else+ else{// If the client isn't able to report this, then we'll just have to make an assumptiondata.PlayCount++;@@ -973,7 +984,7 @@ namespace Emby.Server.Implementations.Sessionvar subItems = await TranslateItemForPlayback(itemId, user).ConfigureAwait(false);list.AddRange(subItems);}-+items = list.Where(i => i.LocationType != LocationType.Virtual).ToList();