# Podcasts Radio, but the other half of it: episodes, in Spanish, that you can resume. Open **Música → Podcasts** (the middle tab; the screen shows one list at a time, ten shows with a "show more"), search by name if you know what you are looking for, or pick a category (*Salud y fitness*, *Deporte*, *Comedia*, *Noticias*, *Historia*, *Crímenes reales*, *Ciencia*, *Tecnología*, *Sociedad y cultura*, *Negocios*, *Ficción*, *Educación*, *Música*, *Ocio*), tap a show, tap an episode. It plays across screens, keeps going with the screen locked, and comes back where you left it. ## Why podcasts and not just more radio They are opposites in every way that matters to the player, and the difference is not cosmetic: | | Radio | A podcast | |---|---|---| | Source | a live stream | a file with a beginning and an end | | Position | meaningless | *the* feature | | Pause | pause the stream | pause, resume, seek ±, remember | | Playing next | the station's job | yours: `next episode` | | Length | unknown, forever | minutes, and worth showing | A podcast you cannot scrub is a podcast you do not use, which is why the player bar grows a progress hairline and two seek buttons when an episode is playing, and none of that exists for a station. ## A search is not a weaker way in Typing in the box above the tabs asks Apple's podcast search, both storefronts, and the results go through **the same feed check and the same Spanish filter** as a category's chart entries — one function on the server, used by both, so "Spanish only" cannot quietly stop applying to a search. That is the shape worth keeping: a second, cheaper path into a catalogue is how a rule like this gets lost. ## Spanish only — checked, not assumed The user asked for Spanish, so the app checks, and this is the part worth knowing before trusting a short list: - Apple's directory is browsed per **storefront** (`es` and `mx`). A storefront says where a podcast is *sold*, which is not the same as the language it is in: the Spanish comedy chart carries a Catalan show, and the Argentine one carries an English show. - So every show's **feed** is read — its first 64 KB, with a `Range` request, because `` is channel metadata that sits in the first ~1.5 KB and always before the first `` — and its `` decides. `es`, `es-ES`, `es-419` and `spa` stay; `ca`, `en`, `pt` and the rest go. - **A feed with no tag at all stays.** Some genuinely Spanish feeds omit it (La Ruina does), and dropping them over an omission would quietly remove good podcasts; the storefront is the fallback signal, and it is not a guess. - The response says how many shows were dropped and why (`skipped: { duplicate, language, unreadable, failed }`), so a list of fifteen is never a mystery. - Opening a show re-checks against the *whole* feed, and a show in another language is answered with `spanish: false` and a sentence — not with an empty episode list that looks like a feed with nothing in it. ## Nothing is proxied, and nothing is downloaded An episode arrives as an `https://` URL from the publisher's own `enclosure`, the phone plays it, and the bytes go from the publisher to the phone. This server contributes the *list*, exactly the bargain the radio makes — no audio through the container, no copies, no downloads, no disk. What this does cost, server-side, is requests: Apple's charts and lookup (two per category), one 64 KB `Range` request per show to read its language, and one fetch per feed when a show is opened (up to ~6 MB for a big archive — cached for half an hour, parsed, and the *parsed* episodes are what is kept, never the body, because forty episodes are a few kilobytes and a feed is megabytes). ## What may be fetched Radio has a host allowlist because it talks to three services. Podcasts cannot: feeds live on every host in the world. So this is the other rule, and it is the rule that matters for an api container sitting inside somebody's house: - **https only**, no credentials in the URL, a real hostname and **never a private address** — no loopback, no `10.`/`192.168.`/`172.16-31.`, no carrier-grade NAT, no link-local (the `169.254.169.254` metadata address is the classic target), no IPv6 literals, no `.local` or `.internal`. - The URL is checked **and so is where the request ended up**, because a redirect is otherwise the way around it. - Bodies are read with a cap and the connection is dropped the moment it is reached. - Both routes need a session — not to protect public podcasts, but because this process fetches on behalf of whoever asks. ## The player, and the two things that are easy to get wrong - **Audio only starts inside the tap.** iOS allows audio to begin from a user gesture and from nothing else, so nothing asynchronous may sit between the finger and the `play()`: the episode URL is already in hand, and the store's `playEpisode` calls straight through. - **The `