Merge pull request #3538 from Ullmie02/api-fix

Fix value parsing in Jellyfin.Api
This commit is contained in:
Bond-009
2020-07-23 10:37:30 +02:00
committed by GitHub
5 changed files with 72 additions and 3 deletions

View File

@@ -52,7 +52,13 @@ namespace MediaBrowser.Model.Configuration
public string PreviousVersionStr
{
get => PreviousVersion?.ToString();
set => PreviousVersion = Version.Parse(value);
set
{
if (Version.TryParse(value, out var version))
{
PreviousVersion = version;
}
}
}
}
}