Skip to content

Commit

Permalink
1.0.9 Released.
Browse files Browse the repository at this point in the history
-Added "Save" label to save settings and use when loading.
  • Loading branch information
ludoux committed Aug 22, 2017
1 parent be2474a commit a3decbc
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 9 deletions.
18 changes: 18 additions & 0 deletions LrcHelper/LrcDownloader.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions LrcHelper/LrcDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
using System.Diagnostics;
using static Ludoux.LrcHelper.NeteaseMusic.ExtendedLyrics;
using Ludoux.LrcHelper.FileWriter;
using System.Text.RegularExpressions;
using System.IO;

namespace LrcHelper
{
public partial class LrcDownloader : Form
Expand Down Expand Up @@ -259,5 +262,32 @@ private void needhelplabel_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Ludoux/LrcHelper/wiki");
}

private void Savelabel_Click(object sender, EventArgs e)
{
try
{
File.WriteAllText(".\\AdvancedSettings.txt", string.Format("Version:{0}\r\nTime:{1}\r\nLyricsStyle:{2}\r\nDelayMsec:{3}\r\nFilenamePattern:{4}\r\n***DO NOT CHANGE ANY TEXT AND/OR ENCODING***\r\n***If you don't want to use these settings ever, just delete this file.***", FileVersionInfo.GetVersionInfo(Application.ExecutablePath).FileVersion, DateTime.Now.ToString(), LyricsStylenumericUpDown.Value.ToString(), DelayMsecnumericUpDown.Value.ToString(), FilenamePatterncomboBox.Text), Encoding.UTF8);
}
catch (Exception)
{
MessageBox.Show("Failed to save file.");
return;
}
MessageBox.Show("These AdvancedSettings will be used in following loading.");
}

private void LrcDownloader_Load(object sender, EventArgs e)
{
if(File.Exists(".\\AdvancedSettings.txt"))
{
string settings = File.ReadAllText(".\\AdvancedSettings.txt", Encoding.UTF8);
AdvancedSettingscheckBox.Checked = true;
LyricsStylenumericUpDown.Value = Convert.ToDecimal(Regex.Match(settings, @"(?<=LyricsStyle:)\d+?(?=\r\n)", RegexOptions.IgnoreCase).Value.ToString());
DelayMsecnumericUpDown.Value = Convert.ToDecimal(Regex.Match(settings, @"(?<=DelayMsec:)\d+?(?=\r\n)", RegexOptions.IgnoreCase).Value.ToString());
FilenamePatterncomboBox.Text = Regex.Match(settings, @"(?<=FilenamePattern:).+?(?=\r\n)", RegexOptions.IgnoreCase).Value.ToString();

}
}
}
}
2 changes: 1 addition & 1 deletion LrcHelper/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.8.0")]
[assembly: AssemblyFileVersion("1.0.9.0")]
[assembly: NeutralResourcesLanguage("en-001")]

Binary file modified Pic/LrcDownloader.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
学习目的~~~///(^v^)\\\~~~

访问 [Release 页面](https://github.com/Ludoux/LRCHelper/releases) 来获得最新的发布版本。
访问 [releases 页面](https://github.com/Ludoux/LRCHelper/releases) 来获得最新的发布版本。

-----

Expand All @@ -17,13 +17,13 @@

![LrcDownloader](https://raw.githubusercontent.com/Ludoux/LrcHelper/master/Pic/LrcDownloader.png)

## 具体操作方法
## 基本操作方法

浏览 [wiki](https://github.com/Ludoux/LrcHelper/wiki) 页面了解更多

`AUTO-SET`开启时,复制链接(网页端见地址栏,桌面应用点分享-复制链接)后将软件切入前台,软件将自动填充信息。或者自行填充 ID 并选择对应的类型。
`AUTO-SET`开启时,复制链接(网页端见地址栏,桌面应用轻敲分享-复制链接)后将软件切入前台,软件将自动填充信息。当然也可以自行填充 ID 并选择对应的类型。

如有需要可以勾选高级设置(AdvancedSettings)来启用更多功能。
如有需要可以勾选高级设置(AdvancedSettings)来启用更多功能(请浏览 wiki)

然后点击按钮“GET”。

Expand All @@ -50,14 +50,15 @@

在 MIT 协议下发布。

## 参考&感谢:
## 参考&感谢

获取外文歌词的代码基于 ituff 的 [163lyric项目](https://github.com/ituff/163lyric) 的实现,进行了修改。(但是 ituff 并没有指定那个项目的开源协议)
获取外文歌词的代码基于 ituff 的 [163lyric项目](https://github.com/ituff/163lyric) 的实现思路,进行了修改。(但是 ituff 并没有指定那个项目的开源协议)

感谢 Moonlib.com 的所有人 Moon 在这个博客上发表了 [自己整理的API](http://moonlib.com/606.html)

## 更新信息(最近在上)

* 2017.8.22 增加 “Save” 以保存高级设置。(v1.0.9 #Release)
* 2017.8.18 微小的优化;增加 “Need Help?” 导向 wiki 页面。
* 2017.8.14 移除了 Newtonsoft.json;修正了对非法字符的处理逻辑。
* 2017.8.8 允许多个 tag 值。(v1.0.8 #Release)
Expand Down
4 changes: 2 additions & 2 deletions UpdateInfo/UpInfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
;DO NOT change the style of this file.
;===================

;Software with these version WILL NOT chek update.If <All> is existed, Software with ANY version WILL NOT check.
;Software with these version WILL NOT check update.If <All> is existed, Software with ANY version WILL NOT check.
[UnsupportedVer]

;Lastest Released Version
[Ver]
<1.0.8.0>
<1.0.9.0>

;WebLink, not software download link.
[WebLink]
Expand Down

0 comments on commit a3decbc

Please sign in to comment.