aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-01 00:46:32 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-01 00:46:32 -0500
commitb92c31ce827cd2d807d10f46fca4477570965647 (patch)
treeb97d3dcd70b26eea1ee8811c4bc68283134b2300
parentab9acdc7714c24149e1cf12b78f5c3b2380dd275 (diff)
update translations
-rw-r--r--Emby.Server.Implementations/Session/SessionManager.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Session/SessionManager.cs b/Emby.Server.Implementations/Session/SessionManager.cs
index 300b67ae2..a20fb67b2 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 assumption
data.PlayCount++;
@@ -973,7 +984,7 @@ namespace Emby.Server.Implementations.Session
var subItems = await TranslateItemForPlayback(itemId, user).ConfigureAwait(false);
list.AddRange(subItems);
}
-
+
items = list
.Where(i => i.LocationType != LocationType.Virtual)
.ToList();