Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Jul 6, 2024
1 parent 0968a2f commit 9c83246
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion Core/Tools/ProgramUpdates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,20 @@ public void Main(string[] args)
{
_httpClient.Timeout = new TimeSpan(0, 0, 10);
_httpClient.DefaultRequestHeaders.Referrer = new Uri("https://update5.ddtv.pro");
if (checkVersion())

bool ffmpegupdate = false;
string ffmpegPath = "./plugins/ffmpeg/ffmpeg.exe";
if(File.Exists(ffmpegPath))
{
FileInfo fileInfo = new(ffmpegPath);
if (fileInfo.Length < 100000000)
{
ffmpegupdate = true;
}
}


if (ffmpegupdate && checkVersion())
{
string DL_FileListUrl = $"/{type}/{(Isdev ? "dev" : "release")}/{type}_Update.json";
string web = Get(DL_FileListUrl);
Expand Down

0 comments on commit 9c83246

Please sign in to comment.