• Aryan Noshirvnai's avatar
    Replace Channels with Radio: band+frequency stations, stateless now-playing · 6c4cb3ed
    Aryan Noshirvnai authored
    Channels shipped a backend nobody built UI for (vibe sets/stories/showcase
    had zero frontend); removed outright rather than left half-built. Radio
    replaces it: creator-run stations tuned via a band (SM/SF/SR) + 50-200.0
    frequency dial, worldwide or local-radius broadcast, a queue that loops
    forever. No scheduler or background job anywhere in this codebase, so
    "now playing" is fully stateless - elapsed-time-since-creation modulo the
    queue's total duration maps deterministically to a (song, offset) pair,
    computed fresh on every request. LibrarySong gained duration_seconds
    (probed via pydub at tag/upload/claim/remix time, lazily backfilled for
    older rows) to make that math possible. Also relaxes /soundmarks/geocode
    and /reverse-geocode from business-admin-only to any authenticated user,
    needed by the new location picker and never actually business-specific.
    6c4cb3ed
music.py 12.1 KB