Closed sniper-developer closed 8 years ago
In different countries, decimal point format differs. Please change code, for example like this:
private static SubtitleSearchResult SelectSubtitle(IEnumerable<SubtitleSearchResult> subs) { return subs .OrderByDescending(s => int.Parse(s.IsFeatured)) .ThenByDescending(s => decimal.Parse(s.Rating, System.Globalization.CultureInfo.InvariantCulture))
--- .ThenByDescending(s => int.Parse(s.DownloadCount)) +++ .ThenByDescending(s => decimal.Parse(s.Rating, System.Globalization.CultureInfo.InvariantCulture))
.FirstOrDefault(); }
This should be fixed in 0.4.1. Please verify and close this issue. Thanks!
Fixed, thank you!
In different countries, decimal point format differs. Please change code, for example like this: