diff --git a/YoutubeDownloader/App.axaml.cs b/YoutubeDownloader/App.axaml.cs index 977c772..0f0d74a 100644 --- a/YoutubeDownloader/App.axaml.cs +++ b/YoutubeDownloader/App.axaml.cs @@ -1,5 +1,4 @@ using System; -using System.Net; using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; @@ -78,9 +77,6 @@ public class App : Application, IDisposable { base.Initialize(); - // Increase maximum concurrent connections - ServicePointManager.DefaultConnectionLimit = 20; - AvaloniaXamlLoader.Load(this); } diff --git a/YoutubeDownloader/DownloadFFmpeg.ps1 b/YoutubeDownloader/DownloadFFmpeg.ps1 index dcc1a8b..f72e00b 100644 --- a/YoutubeDownloader/DownloadFFmpeg.ps1 +++ b/YoutubeDownloader/DownloadFFmpeg.ps1 @@ -36,7 +36,6 @@ if (Test-Path $outputPath) { # Download the archive Write-Host "Downloading FFmpeg for $platform..." -[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $http = New-Object System.Net.WebClient try { $http.DownloadFile("https://github.com/Tyrrrz/FFmpegBin/releases/download/7.0/ffmpeg-$platform.zip", "$outputPath.zip") diff --git a/YoutubeDownloader/Services/UpdateService.cs b/YoutubeDownloader/Services/UpdateService.cs index c9b9332..57ddab3 100644 --- a/YoutubeDownloader/Services/UpdateService.cs +++ b/YoutubeDownloader/Services/UpdateService.cs @@ -1,5 +1,4 @@ using System; -using System.IO; using System.Runtime.InteropServices; using System.Threading.Tasks; using Onova; diff --git a/YoutubeDownloader/ViewModels/MainViewModel.cs b/YoutubeDownloader/ViewModels/MainViewModel.cs index c245d51..9418d7f 100644 --- a/YoutubeDownloader/ViewModels/MainViewModel.cs +++ b/YoutubeDownloader/ViewModels/MainViewModel.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.Threading.Tasks; using Avalonia; using CommunityToolkit.Mvvm.Input; -using YoutubeDownloader.Core; using YoutubeDownloader.Core.Downloading; using YoutubeDownloader.Framework; using YoutubeDownloader.Services;