Update yt-dlp.exe download version

This commit is contained in:
niksedk 2022-05-25 18:57:57 +02:00
parent 6f6b5164a5
commit eb62b55a0e
2 changed files with 7 additions and 7 deletions

View File

@ -9,8 +9,8 @@ namespace Nikse.SubtitleEdit.Forms
{
public sealed partial class DownloadYouTubeDl : Form
{
public const string Url = "https://github.com/yt-dlp/yt-dlp/releases/download/2021.11.10.1/yt-dlp.exe";
public const string Sha512Hash = "44f992ebd88859e772bd4d555b5d87f8fa1d89a0aabf638cfe331e2330a0786ebec7093a2bbc9f38de3fdfecb12a38b2171d2eec29dd51bbd2e171a3cd734c01";
public const string Url = "https://github.com/yt-dlp/yt-dlp/releases/download/2022.05.18/yt-dlp.exe";
public const string Sha512Hash = "f8f55be89b8b4b5c9703bb594367ad10c245dd1e1de9182a8a3d8ae06220aeabe200ed9b797d6f176a5d10f99ff3bbb48176c4e52cd9f4cc3c1fac451df42dde";
public bool AutoClose { get; internal set; }
public DownloadYouTubeDl()
@ -87,11 +87,11 @@ namespace Nikse.SubtitleEdit.Forms
var hash = Utilities.GetSha512Hash(e.Result);
if (hash != Sha512Hash)
{
MessageBox.Show("yt-dlp SHA-512 hash does not match!");
MessageBox.Show("yt-dlp.exe SHA-512 hash does not match!");
return;
}
File.WriteAllBytes(Path.Combine(folder, "youtube-dl.exe"), e.Result);
File.WriteAllBytes(Path.Combine(folder, "yt-dlp.exe"), e.Result);
Cursor = Cursors.Default;
labelPleaseWait.Text = string.Empty;

View File

@ -4138,7 +4138,7 @@ namespace Nikse.SubtitleEdit.Forms
if (Configuration.IsRunningOnWindows)
{
var isMpvAvailable = LibMpvDynamic.IsInstalled;
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "youtube-dl.exe"));
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "yt-dlp.exe"));
var allOk = isYouTubeDlInstalled && isMpvAvailable;
if (!allOk)
@ -4688,7 +4688,7 @@ namespace Nikse.SubtitleEdit.Forms
Configuration.IsRunningOnWindows)
{
var isMpvAvailable = LibMpvDynamic.IsInstalled;
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "youtube-dl.exe"));
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "yt-dlp.exe"));
var allOk = isYouTubeDlInstalled && isMpvAvailable;
if (allOk)
@ -32209,7 +32209,7 @@ namespace Nikse.SubtitleEdit.Forms
if (Configuration.IsRunningOnWindows)
{
var isMpvAvailable = LibMpvDynamic.IsInstalled;
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "youtube-dl.exe"));
var isYouTubeDlInstalled = File.Exists(Path.Combine(Configuration.DataDirectory, "yt-dlp.exe"));
var allOk = isYouTubeDlInstalled && isMpvAvailable;
if (!allOk)