Skip to content

Commit

Permalink
Fix crashing when loading Korean release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng committed Mar 17, 2021
1 parent 126d119 commit 37c8e5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion SCTools/SCTool_Redesigned/Utils/RepositoryManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private static CustomGitHubRepository.GitRelease[] GetReleases(bool cache)

if (GetLocalizationSource().Repository.Equals("xhatagon/sc_ko"))
{
customGithubRepo.ChangeReleasesUrl("https://sc.galaxyhub.kr/api/v2/releases/check");
customGithubRepo.ChangeReleasesUrl("https://sc.galaxyhub.kr/api/v3/releases/check?id=eGhhdGFnb24vc2Nfa28");
}

customGithubRepo.UpdateAsync(cancellationToken).Wait();
Expand Down Expand Up @@ -237,6 +237,11 @@ public static string GetReleaseNote(bool cache = true)
{
foreach (CustomGitHubRepository.GitRelease release in releases)
{
if (release.Draft)
{
continue;
}

//Humanize
sb.Append($"# {release.Name}\n");
sb.Append($"{XmlConvert.ToString(release.Published.ToLocalTime(), Properties.Resources.UI_Desc_DateTimeFormat)} \n");
Expand Down

0 comments on commit 37c8e5f

Please sign in to comment.