Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ _AutoinstallCreator/AutoinstallCreator*
*.log
*.ini

*.part
*.ytdl

.idea/
.empty
uTorrent/*.lng
Expand Down
23 changes: 0 additions & 23 deletions youtube-dl/_create_install.bat

This file was deleted.

4 changes: 4 additions & 0 deletions yt-dlp/create_install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
"%~dp0..\.tools\busybox.exe" bash "%~dp0create_install.sh"

exit /b %errorlevel%
34 changes: 34 additions & 0 deletions yt-dlp/create_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/bash
dp0="$(realpath "$(dirname "$0")")"
dp0_tools="$dp0/../.tools" && source "$dp0_tools/env_tools.sh"
set -e
cd "$dp0"

latest_version=https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
echo Get latest version: "$latest_version" ...
download_url=$($curl --silent --location "$latest_version" | "$grep" --only-matching '(?<="browser_download_url":\s")[^,]+yt-dlp\.exe(?=")' | head -n1)
[[ -z "$download_url" ]] && {
echo "Cannot get release version"
exit 1
}

echo "Downloading: $download_url ..."
$curl --location "$download_url" --remote-name



ffmpeg_latest_version=https://api.github.com/repos/BtbN/FFmpeg-Builds/releases/latest
echo Get latest version: "$ffmpeg_latest_version" ...
ffmpeg_download_url=$($curl --silent --location "$ffmpeg_latest_version" | "$grep" --only-matching '(?<="browser_download_url":\s")[^,]+ffmpeg-master-latest-win64-gpl\.zip(?=")' | head -n1)
[[ -z "$ffmpeg_download_url" ]] && {
echo "Cannot get release version"
exit 1
}

ffmpeg_filename="$(basename -- "$ffmpeg_download_url")"

echo "Downloading: $ffmpeg_download_url ..."
$curl --location "$ffmpeg_download_url" --remote-name

echo Extracting ...
"$p7z" e "$ffmpeg_filename" "-o." "*.exe" -aoa -r
Loading