Don't split playcount

pull/5194/head
David Ullmer 4 years ago
parent ab5fb1b1f2
commit eaaab10cf3

@ -392,7 +392,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers
var val = reader.ReadElementContentAsString(); var val = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(val) && userData != null) 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; userData.PlayCount = count;
} }

Loading…
Cancel
Save