Don't split playcount

This commit is contained in:
David Ullmer 2021-02-11 14:15:11 +01:00
parent ab5fb1b1f2
commit eaaab10cf3

View File

@ -392,7 +392,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
var val = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(val) && userData != null)
{
if (int.TryParse(val.Split(' ')[0], NumberStyles.Integer, UsCulture, out var count))
if (int.TryParse(val, NumberStyles.Integer, UsCulture, out var count))
{
userData.PlayCount = count;
}