mirror of
https://github.com/seanbetts/steam-hardware-watch.git
synced 2026-10-06 06:00:34 +02:00
Record Steam Machine follow-up package movement
This commit is contained in:
1 parent
15858a35f1
commit
cde4f5f5fc
5 files changed
+219
-27
No files matched your search
@@ -109,6 +109,18 @@ fetch_json "sections-frame-search" "https://komodostation.com/wp-json/wp/v2/sect
|
||||
fetch_json "media-controller-search" "https://komodostation.com/wp-json/wp/v2/media?search=Steam%20Controller&per_page=100" || true
|
||||
fetch_json "media-parent-product-controller" "https://komodostation.com/wp-json/wp/v2/media?parent=413763&per_page=100" || true
|
||||
|
||||
for optional_array in \
|
||||
sections-controller-search \
|
||||
sections-machine-search \
|
||||
sections-frame-search \
|
||||
media-controller-search \
|
||||
media-parent-product-controller
|
||||
do
|
||||
if [ ! -f "$OUT_DIR/$optional_array.json" ]; then
|
||||
printf '%s\n' "[]" > "$OUT_DIR/$optional_array.json"
|
||||
fi
|
||||
done
|
||||
|
||||
for id in $(jq -r '.[].id' "$OUT_DIR/sections-controller-search.json" 2>/dev/null || true); do
|
||||
fetch_json "media-parent-section-$id" "https://komodostation.com/wp-json/wp/v2/media?parent=$id&per_page=100" || true
|
||||
done
|
||||
|
||||
Reference in new issue
Block a user