mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-04 21:04:01 +03:00
Add User-Agent header to curl commands
This commit is contained in:
@@ -34,15 +34,24 @@ jobs:
|
|||||||
mkdir -p "$GITHUB_WORKSPACE/dist/windows/bin"
|
mkdir -p "$GITHUB_WORKSPACE/dist/windows/bin"
|
||||||
|
|
||||||
# yt-dlp
|
# yt-dlp
|
||||||
curl -fL -o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
curl -fL \
|
||||||
|
-H "User-Agent: github-actions" \
|
||||||
|
-o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" \
|
||||||
|
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
||||||
|
|
||||||
# FFmpeg Windows static
|
# FFmpeg Windows static
|
||||||
curl -fL -o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
|
curl -fL \
|
||||||
|
-H "User-Agent: github-actions" \
|
||||||
|
-o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" \
|
||||||
|
https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
|
||||||
unzip -q "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" -d "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp"
|
unzip -q "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" -d "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp"
|
||||||
mv $(find "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" -name ffmpeg.exe | head -n 1) "$GITHUB_WORKSPACE/dist/windows/bin/ffmpeg.exe"
|
mv $(find "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" -name ffmpeg.exe | head -n 1) "$GITHUB_WORKSPACE/dist/windows/bin/ffmpeg.exe"
|
||||||
|
|
||||||
# aria2c Windows static
|
# aria2c Windows static
|
||||||
curl -fL -o "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip
|
curl -fL \
|
||||||
|
-H "User-Agent: github-actions" \
|
||||||
|
-o "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" \
|
||||||
|
https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip
|
||||||
unzip "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" -d "$GITHUB_WORKSPACE/dist/windows/"
|
unzip "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" -d "$GITHUB_WORKSPACE/dist/windows/"
|
||||||
mv "$GITHUB_WORKSPACE/dist/windows/aria2-1.37.0-win-64bit-build1/aria2c.exe" "$GITHUB_WORKSPACE/dist/windows/bin/aria2c.exe"
|
mv "$GITHUB_WORKSPACE/dist/windows/aria2-1.37.0-win-64bit-build1/aria2c.exe" "$GITHUB_WORKSPACE/dist/windows/bin/aria2c.exe"
|
||||||
|
|
||||||
@@ -95,12 +104,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Download yt-dlp
|
- name: Download yt-dlp
|
||||||
run: |
|
run: |
|
||||||
curl -fL -o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
|
curl -fL \
|
||||||
|
-H "User-Agent: github-actions" \
|
||||||
|
-o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" \
|
||||||
|
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
|
||||||
chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp"
|
chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp"
|
||||||
|
|
||||||
- name: Download FFmpeg static
|
- name: Download FFmpeg static
|
||||||
run: |
|
run: |
|
||||||
curl -fL -o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
curl -fL \
|
||||||
|
-H "User-Agent: github-actions" \
|
||||||
|
-o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" \
|
||||||
|
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
||||||
mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp"
|
mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp"
|
||||||
tar -xf "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" -C "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp" --strip-components=1
|
tar -xf "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" -C "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp" --strip-components=1
|
||||||
mv "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp/ffmpeg" "$GITHUB_WORKSPACE/dist/linux/bin/ffmpeg"
|
mv "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp/ffmpeg" "$GITHUB_WORKSPACE/dist/linux/bin/ffmpeg"
|
||||||
|
|||||||
Reference in New Issue
Block a user