Movie search

Search

Runs one Google Programmable Search per catalog (IMDb, ČSFD, Kinobox, TMDB, Metacritic, Rotten Tomatoes, Letterboxd). The sources object is keyed by catalog code in CONSTANT_CASE (e.g. IMDB, ROTTEN_TOMATOES). Each value lists items (Google title, snippet, optional imageUrl, url to the movie page). No server-side Movie is built for search; to parse a hit, use MovieCatalogSourceFactory::forKey($sourceKey)->getMovie(new TURL($item["url"])) with the internal search key (imdb, rotten, …). Each source can use its own engine: GOOGLE_CUSTOM_SEARCH_ENGINE_ID_IMDB, …_CSFD, …_KINOBOX, …_TMDB, …_METACRITIC, …_ROTTEN, …_LETTERBOXD (or matching Secret Manager secrets); otherwise set a global GOOGLE_CUSTOM_SEARCH_ENGINE_ID. Same for the API key.