fix(main/mediainfo): auto update (#19934)

%ci:no-build
This commit is contained in:
Jia Yuan Lo 2024-04-26 13:23:51 +08:00 committed by GitHub
parent 8b2e55d993
commit 89b5f016ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-shared --enable-static --with-libcurl"
termux_pkg_auto_update() {
local e=0
local api_url="https://mediaarea.net/en/MediaInfo"
local api_url_r=$(curl -s "${api_url}/")
local api_url_r=$(curl -Ls "${api_url}/")
local r1=$(echo "${api_url_r}" | grep -o '"softwareVersion"\s*:\s*"\([^"]\+\)"')
local latest_version=$(echo "${r1}" | grep -o '[0-9.]\+')

View File

@ -12,7 +12,7 @@ TERMUX_PKG_DEPENDS="libandroid-support, libc++, libmediainfo, libzen"
termux_pkg_auto_update() {
local e=0
local api_url="https://mediaarea.net/en/MediaInfo"
local api_url_r=$(curl -s "${api_url}/")
local api_url_r=$(curl -Ls "${api_url}/")
local r1=$(echo "${api_url_r}" | grep -o '"softwareVersion"\s*:\s*"\([^"]\+\)"')
local latest_version=$(echo "${r1}" | grep -o '[0-9.]\+')