#!/bin/bash # Script to download all IndeeHub film images and metadata # Run this while logged in to IndeeHub.studio ASSETS_DIR="assets/films" mkdir -p "$ASSETS_DIR/posters" mkdir -p "$ASSETS_DIR/backdrops" echo "Downloading IndeeHub film images..." # Array of film IDs from screening room films=( "everybody-does-it" "girl-to-girl" "bula-mahlo" "lullaby" "stranded-dirty-coin" "home" "searching-for-satoshi" "the-things-we-carry" "anatomy-of-the-state" "duel" "wedding-planning" "one-mans-trash" "in-the-darkness" "clemont" "anne" "bender" "fall-of-2008" "god-bless-bitcoin" "housing-bubble" "forging-a-country" "bitcoiners" "kid-prosper" "how-sweden-quit-smoking" "a-night-of-psychosis" "nanoblood" "zones-of-progress" "project-project" "the-edited" "time-traveling-thieves" "the-man-who-wouldnt-cry" ) # Download posters (640x960) for film in "${films[@]}"; do echo "Downloading poster for: $film" curl -s "https://indeehub.studio/_next/image?url=%2Fapi%2Fposters%2F${film}&w=640&q=75" \ -o "$ASSETS_DIR/posters/${film}.jpg" \ --cookie-jar cookies.txt \ --cookie cookies.txt done # Download backdrops (1920x1080) for film in "${films[@]}"; do echo "Downloading backdrop for: $film" curl -s "https://indeehub.studio/_next/image?url=%2Fapi%2Fbackdrops%2F${film}&w=1920&q=75" \ -o "$ASSETS_DIR/backdrops/${film}.jpg" \ --cookie-jar cookies.txt \ --cookie cookies.txt done echo "✅ Download complete!" echo "Images saved to: $ASSETS_DIR"