Skip to content

Commit

Permalink
0.9.9.16
Browse files Browse the repository at this point in the history
0.9.9.16
  • Loading branch information
ImAiiR committed Jun 16, 2020
1 parent 6c225b8 commit 58a6be7
Show file tree
Hide file tree
Showing 7 changed files with 561 additions and 194 deletions.
3 changes: 3 additions & 0 deletions QobuzDownloaderX/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@
<setting name="savedArtSize" serializeAs="String">
<value>1</value>
</setting>
<setting name="typeTag" serializeAs="String">
<value>True</value>
</setting>
</QobuzDownloaderX.Properties.Settings>
</userSettings>
</configuration>
18 changes: 18 additions & 0 deletions QobuzDownloaderX/Form1.Designer.cs

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

701 changes: 513 additions & 188 deletions QobuzDownloaderX/Form1.cs

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions QobuzDownloaderX/LoginForm-v2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,18 @@ private void LoginFrm_Load(object sender, EventArgs e)
WebClient versionURLClient = new WebClient();
// Run through TLS to allow secure connection.
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
string versionHTML = versionURLClient.DownloadString("https://github.com/ImAiiR/QobuzDownloaderX/releases");
// Set user-agent to Firefox.
versionURLClient.Headers.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:67.0) Gecko/20100101 Firefox/67.0");
string versionHTML = versionURLClient.DownloadString("https://api.github.com/repos/ImAiiR/QobuzDownloaderX/releases/latest");

// Grab link to bundle.js
var versionLog = Regex.Match(versionHTML, "<span class=\"css-truncate-target\" style=\"max-width: 125px\">(?<latestVersion>.*?)<\\/span>").Groups;
// Grab latest version number
var versionLog = Regex.Match(versionHTML, "\"tag_name\": \"(?<latestVersion>.*?)\",").Groups;
var version = versionLog[1].Value;

// Grab changelog
var changesLog = Regex.Match(versionHTML, "\"body\": \"(?<changeLog>.*?)\"").Groups;
var changes = changesLog[1].Value;

string currentVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
string newVersion = version;

Expand All @@ -114,7 +120,7 @@ private void LoginFrm_Load(object sender, EventArgs e)
}
else
{
DialogResult dialogResult = MessageBox.Show("New version of QBDLX is available!\r\n\r\nInstalled version - " + currentVersion + "\r\nLatest version - "+ newVersion + "\r\n\r\nWould you like to update?", "QBDLX | Update Available", MessageBoxButtons.YesNo);
DialogResult dialogResult = MessageBox.Show("New version of QBDLX is available!\r\n\r\nInstalled version - " + currentVersion + "\r\nLatest version - "+ newVersion + "\r\n\r\nChangelog Below\r\n==============\r\n" + changes.Replace("\\r\\n", "\r\n") + "\r\n==============\r\n\r\nWould you like to update?", "QBDLX | Update Available", MessageBoxButtons.YesNo);
if (dialogResult == DialogResult.Yes)
{
// If "Yes" is clicked, open GitHub page and close QBDLX.
Expand Down
4 changes: 2 additions & 2 deletions QobuzDownloaderX/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.9.15")]
[assembly: AssemblyFileVersion("0.9.9.15")]
[assembly: AssemblyVersion("0.9.9.16")]
[assembly: AssemblyFileVersion("0.9.9.16")]
12 changes: 12 additions & 0 deletions QobuzDownloaderX/Properties/Settings.Designer.cs

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

3 changes: 3 additions & 0 deletions QobuzDownloaderX/Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,8 @@
<Setting Name="savedArtSize" Type="System.Int32" Scope="User">
<Value Profile="(Default)">1</Value>
</Setting>
<Setting Name="typeTag" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
</Settings>
</SettingsFile>

0 comments on commit 58a6be7

Please sign in to comment.