Commit 42d86377 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play common.h: use two mirrors, in .ru and in .org

parent efa7d212
......@@ -97,12 +97,18 @@ update_url_if_need_mirrored()
local SECONDURL
check_url_is_accessible "$URL" && return
if [ -n "$MIRROR" ] ; then
SECONDURL="$MIRROR"
else
MIRROR="https://mirror.eterfund.org"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
check_url_is_accessible "$MIRROR" && URL="$MIRROR"
return
fi
check_url_is_accessible "$SECONDURL" && URL="$SECONDURL"
MIRROR="https://mirror.eterfund.ru"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
check_url_is_accessible "$SECONDURL" && URL="$SECONDURL" && return
MIRROR="https://mirror.eterfund.org"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
check_url_is_accessible "$SECONDURL" && URL="$SECONDURL" && return
}
check_supported_arch $SUPPORTEDARCHES || fatal "Only $SUPPORTEDARCHES is supported"
......@@ -32,7 +32,7 @@ pack_ffmpeg() {
exit
}
URL="https://browser-resources.s3.yandex.net/linux/codecs.json1"
URL="https://browser-resources.s3.yandex.net/linux/codecs.json"
update_url_if_need_mirrored
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment