save vote count in xml

This commit is contained in:
Luke Pulverenti
2013-10-13 09:32:53 -04:00
parent 05378c82cb
commit 7c83e18453
2 changed files with 20 additions and 1 deletions

View File

@@ -566,7 +566,7 @@ namespace MediaBrowser.Controller.Providers
if (!string.IsNullOrWhiteSpace(val))
{
int num;
// All external meta is saving this as '.' for decimal I believe...but just to be sure
if (int.TryParse(val, NumberStyles.Integer, _usCulture, out num))
{
var game = item as Game;
@@ -578,6 +578,20 @@ namespace MediaBrowser.Controller.Providers
}
break;
}
case "VoteCount":
{
var val = reader.ReadElementContentAsString();
if (!string.IsNullOrWhiteSpace(val))
{
int num;
if (int.TryParse(val, NumberStyles.Integer, _usCulture, out num))
{
item.VoteCount = num;
}
}
break;
}
case "GameSystem":
{
var val = reader.ReadElementContentAsString();