diff --git a/WeiboAlbumDownloader/Helpers/GithubHelper.cs b/WeiboAlbumDownloader/Helpers/GithubHelper.cs index 2279351..a07b37e 100644 --- a/WeiboAlbumDownloader/Helpers/GithubHelper.cs +++ b/WeiboAlbumDownloader/Helpers/GithubHelper.cs @@ -31,8 +31,33 @@ public class GithubHelper } catch (Exception ex) { - return ex.ToString(); + //return ex.ToString(); } } + + public static async Task GetGiteeLatestVersion() + { + try + { + HttpClient client = new HttpClient(); + var resp = await client.GetAsync("https://gitee.com/hupo376787/weibo-album-downloader/tags"); + var body = await resp.Content.ReadAsStringAsync(); + string pattern = @"