Skip to content

Commit

Permalink
v1.65
Browse files Browse the repository at this point in the history
Github depreciated TLSv1.0 + TLSv1.1, so I use TLSv1.2, which means it re-requires .NET Framework 4.5.
Older versions also work, they just can't check for updates anymore.
  • Loading branch information
murrty1 authored Feb 25, 2018
1 parent d623284 commit 46f0b58
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions App.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</sectionGroup>
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
<userSettings>
<youtube_dl_gui.Resources.Settings>
Expand All @@ -32,7 +32,7 @@
<value>2017-06-10</value>
</setting>
<setting name="DownloadDir" serializeAs="String">
<value />
<value/>
</setting>
<setting name="DaysBetweenUpdate" serializeAs="String">
<value>1</value>
Expand Down Expand Up @@ -71,7 +71,7 @@
<value>True</value>
</setting>
<setting name="savedArgs" serializeAs="String">
<value />
<value/>
</setting>
<setting name="sortDownloads" serializeAs="String">
<value>False</value>
Expand All @@ -80,7 +80,7 @@
<value>True</value>
</setting>
<setting name="youtubedlDir" serializeAs="String">
<value />
<value/>
</setting>
<setting name="staticYTD" serializeAs="String">
<value>True</value>
Expand Down Expand Up @@ -180,7 +180,7 @@
<applicationSettings>
<youtube_dl_gui.Properties.Settings>
<setting name="currentVersion" serializeAs="String">
<value>1.64</value>
<value>1.65</value>
</setting>
</youtube_dl_gui.Properties.Settings>
</applicationSettings>
Expand Down
5 changes: 4 additions & 1 deletion Classes/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Security;
using System.Runtime.Serialization.Json;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
Expand All @@ -17,12 +19,13 @@ namespace youtube_dl_gui {
class Updater {
public static string rawURL = "https://raw.githubusercontent.com/murrty/youtube-dl-gui";
public static string githubURL = "https://github.com/murrty/youtube-dl-gui";
public static string githubJSON = "https://api.github.com/repos/murrty/youtube-dl-gui/releases/latest";
public static string githubJSON = "http://api.github.com/repos/murrty/youtube-dl-gui/releases/latest";
public static string downloadURL = "https://github.com/murrty/youtube-dl-gui/releases/download/%upVersion%/youtube-dl-gui.exe";
public static string updateFile = @"\ydgu.bat";

public static string getJSON(string url) {
try {
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
using (WebClient wc = new WebClient()) {
wc.Headers.Add("User-Agent: " + Advanced.Default.UserAgent);
string json = wc.DownloadString(url);
Expand Down
4 changes: 2 additions & 2 deletions Forms/frmMain.Designer.cs

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

2 changes: 1 addition & 1 deletion Properties/Settings.Designer.cs

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

2 changes: 1 addition & 1 deletion Properties/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Value Profile="(Default)">2017.09.01</Value>
</Setting>
<Setting Name="currentVersion" Type="System.Decimal" Scope="Application">
<Value Profile="(Default)">1.64</Value>
<Value Profile="(Default)">1.65</Value>
</Setting>
<Setting Name="runningUpdate" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
Expand Down
2 changes: 1 addition & 1 deletion youtube-dl-gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>youtube_dl_gui</RootNamespace>
<AssemblyName>youtube-dl-gui</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand Down

0 comments on commit 46f0b58

Please sign in to comment.