Commit 1f15d28e authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play epsonscan2: use download3.ebz.epson.net URLs

parent 54e5a810
......@@ -10,17 +10,14 @@ URL="https://support.epson.net/linux/en/epsonscan2.php"
warn_version_is_not_supported
# download-center.epson.com API is blocked from datacenter IPs, use direct URLs
pkgtype=$(epm print info -p)
arch="$(epm print info -a)"
case "$pkgtype-$arch" in
rpm-x86_64)
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=RPM&region=RU&language=en" '["items",2,"url"]')"
;;
*-x86_64)
PKGURL="$(get_json_value "https://download-center.epson.com/api/v1/modules/?device_id=DS-770&os=DEBX64&region=RU&language=en" '["items",2,"url"]')"
case "$pkgtype" in
rpm)
PKGURL="https://download3.ebz.epson.net/dsc/f/03/00/16/14/40/9cb99579f9fa7facf54f77f0ce6fe5600677f30a/epsonscan2-bundle-6.7.70.0.x86_64.rpm.tar.gz"
;;
*)
fatal "$arch arch is not supported"
PKGURL="https://download3.ebz.epson.net/dsc/f/03/00/16/14/38/7b1780ace96e2c6033bbb667c7f3ed281e4e9f38/epsonscan2-bundle-6.7.70.0.x86_64.deb.tar.gz"
;;
esac
......
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