+# Remove old yt-dlp signature
+Remove-Item $yt_sig_location
+
+Write-Output "Updating ffmpeg signature..."
+# Download new ffmpeg signature
+Invoke-WebRequest https://github.com/arthur-taft/ffmpeg-latest-signatures/releases/latest/download/checksums.sha256 -OutFile $ffmpeg_sig_location
+Write-Output "Done!"
+
+Write-Output "Updating yt-dlp signature..."
+# Download new yt-dlp signature
+Invoke-WebRequest https://github.com/arthur-taft/yt-dlp-signatures/releases/latest/download/SHA2-512SUMS -OutFile $yt_sig_location
+Write-Output "Done!"
+
+if($yt_sig_eq_check -ne $true) {
+ Write-Output "Old version of yt-dlp found, updating now..."
+
+ # Remove old executable
+ Remove-Item $exe_location
+
+ # Download new executable
+ Invoke-WebRequest https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe -OutFile $exe_location
+
+ Write-Output "Done!"
+}
+
+if($ffmpeg_sig_eq_check -ne $true) {
+ Write-Output "Old version ffmpeg found, updating now..."
+
+ # Remove old executable
+ Remove-Item $ffmpeg_location
+
+ # Create work directory to extract archive with new executable
+ New-Item -Path $current_dir -Name "work" -ItemType "directory"
+
+ # Download new archive
+ Invoke-WebRequest https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-gpl-shared.zip -OutFile $ffmpeg_zip_work_location
+
+ # Extract archive to work directory
+ Expand-Archive -Path $ffmpeg_zip_work_location -DestinationPath $work_dir
+
+ # Move new executable to correct location
+ Move-Item -Path $ffmpeg_work_location -Destination $ffmpeg_location
+
+ # Remove work directory
+ Remove-Item -Recurse -Force $work_dir
+
+ Write-Output "Done!"
+}