From 05c7511b2fd30f79bd429c2961845d4001ada79f Mon Sep 17 00:00:00 2001 From: SoulHarsh007 Date: Fri, 13 Oct 2023 14:39:35 +0530 Subject: [PATCH] fix(rebornos): use CDN metadata API instead of scraping Signed-off-by: SoulHarsh007 --- quickget | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index 4dee8de..b1e4216 100755 --- a/quickget +++ b/quickget @@ -549,9 +549,9 @@ function releases_rebornos() { } function get_rebornos() { - local ISO=$(curl -s 'https://www.rebornos.org/download/' | grep -ohE 'https://pub-cb7a4d4f7a974896b3bf40c52d1defbc.r2.dev/RebornOS-ISO/(rebornos_xfce_minimal|rebornos_iso)-[0-9]{4}.[0-9]{2}.[0-9]{2}-x86_64.iso' | tail -n1) - local HASH=$(curl -s 'https://www.rebornos.org/download/' | grep -ozP 'Checksum MD5:.*[0-9a-fA-F]{32}' | grep -zoP '[0-9a-fA-F]{32}' | cut -d '' -f1) - echo "${ISO} ${HASH}" + local ISO=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".url") + local HASH=$(wget -q -O- "https://meta.cdn.soulharsh007.dev/RebornOS-ISO?format=json" | jq -r ".md5") + echo "${ISO} ${HASH}" } function releases_rockylinux() {