Use LastUpdated Time Instead of Current Time for missing Stop event (#87)

This commit is contained in:
Samuel Lorch 2024-07-17 19:05:02 +02:00 committed by GitHub
parent 8bb1d7a210
commit d837dd2382
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ namespace Jellyfin.Plugin.PlaybackReporting.Data
{
events.Add(e);
}
KeyValuePair<DateTime, ActionType> stop_event = new KeyValuePair<DateTime, ActionType>(DateTime.Now, ActionType.STOP);
KeyValuePair<DateTime, ActionType> stop_event = new KeyValuePair<DateTime, ActionType>(LastUpdated, ActionType.STOP);
events.Add(stop_event);
}
else