Skip to content

Commit

Permalink
1.2.0更新
Browse files Browse the repository at this point in the history
  • Loading branch information
qingshanking committed May 18, 2020
1 parent 9409a6d commit e000379
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 6 deletions.
Binary file modified .vs/Bilibili.Download/v15/.suo
Binary file not shown.
Binary file modified .vs/Bilibili.Download/v15/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/Bilibili.Download/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/Bilibili.Download/v15/Server/sqlite3/storage.ide-wal
Binary file not shown.
31 changes: 25 additions & 6 deletions Main/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ private void down_btn_Click(object sender, EventArgs e)
{
//int doc_id = Convert.ToInt32(doc_id_str);
var ressstr = HttpRequest(doc_id_str);
if (ressstr.Contains("未能解析此远程名称"))
if (ressstr.Contains("未能解析此远程名称")||ressstr.Contains("html"))
{
MessageBox.Show("网络异常");
return;
Expand All @@ -37,6 +37,8 @@ private void down_btn_Click(object sender, EventArgs e)
if (hm.code == 0)
{
long_text.Text += "\n获取成功:相簿标题:" + hm.data.title + ",开始下载,请等待";
//去除特殊字符,防止创建文件报错
hm.data.title = Transferred(hm.data.title);
string savePath = AppDomain.CurrentDomain.BaseDirectory + hm.data.title;
DirFileHelper.CreateDirectory(savePath);
foreach (var item in hm.data.pictures)
Expand All @@ -53,7 +55,7 @@ private void down_btn_Click(object sender, EventArgs e)
{//不是INT
long_text.Text += "\n文章id错误";
}
}
}


/// <summary>
Expand All @@ -65,7 +67,7 @@ private string HttpRequest(string doc_id)
{
try
{
string url = "http://h-bilibili.xs.170601.xyz/v2/getdetail.php";
string url = "https://h-bilibili.xs.170601.xyz/v2/getdetail.php";
HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
Expand All @@ -90,9 +92,8 @@ private string HttpRequest(string doc_id)
}
catch (Exception ex)
{
return "";
return "未能解析此远程名称";
}

}
/// <summary>
/// 关于按钮
Expand All @@ -107,7 +108,25 @@ private void about_Label_Click(object sender, EventArgs e)
private void Main_Load(object sender, EventArgs e)
{
//版本说明
Version_Label.Text = "V 1.1.0";
Version_Label.Text = "V 1.2.0";
}

/// <summary>
/// 去除特殊字符,防止报错
/// </summary>
/// <param name="Meaning"></param>
/// <returns></returns>
private string Transferred(string Meaning)
{
Meaning = Meaning.Replace("?", "");
Meaning = Meaning.Replace("?", "");
Meaning = Meaning.Replace("\"", "");
Meaning = Meaning.Replace("/", "");
Meaning = Meaning.Replace("*", "");
Meaning = Meaning.Replace("<", "");
Meaning = Meaning.Replace(">", "");
Meaning = Meaning.Replace("|", "");
return Meaning;
}
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
![使用动态](https://cdn.jsdelivr.net/gh/qingshanking/Bilibili.Album.Download/image/Bilibili.Album.Download.gif01.gif)

## 更新说明
- [V1.2.0](https://github.com/qingshanking/Bilibili.Album.Download/releases/download/v1.2.0/v1.2.0.zip) 小版本优化
- 优化域名接口;
- 优化文件夹异常报错;
- 其他小功能优化;
- [V1.1.0](https://github.com/qingshanking/Bilibili.Album.Download/releases/download/v1.1.0/v1.1.0.zip) 解析域名变更
- 更新接口数据,变更域名;
- 优化域名解析错误报错;
Expand Down

0 comments on commit e000379

Please sign in to comment.