private void StartDownload(Asset ass)
{
Log.Info($"开始下载 - {ass.browser_download_url}");
Log.Info("提示:由于服务器在境外,下载可能比较慢,稍安勿躁哦!下载期间就不要再动程序了~");
DownloadFileName = Environment.CurrentDirectory + $@"\BiliRanking.downloading";
try
{
WebClient http = CreateWebClient();
http.DownloadFileCompleted += Http_DownloadFileCompleted; ;
http.DownloadFileAsync(new Uri(ass.browser_download_url), DownloadFileName);
}
catch (Exception ex)
{
Log.Error("文件下载失败");
Log.Debug(ex.Message);
}
}