crabidy/cbd-tui
Test User 1228c7cb70 cbd-tui: show the album year, not the full release date
A notification has one line for the album, and "album (1977-10-28)"
spends it on a day nobody asked about.

`release_date` is whatever the provider's API (or fsdy's sidecar TOML)
said and is not always ISO 8601, so `release_year` reads the leading four
digits of a year-first date and returns None for anything else — an
unparseable date is dropped rather than shown raw or half-parsed, which
also keeps the "no date, no parentheses" path doing the work. `get(..4)`
is the safe form: a short string or a multi-byte boundary yields None
instead of panicking, and the tests pin both down.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-28 10:57:36 +02:00
..
src cbd-tui: show the album year, not the full release date 2026-07-28 10:57:36 +02:00
tests cbd-tui: speak MPRIS, so the media keys reach the server 2026-07-28 01:27:28 +02:00
Cargo.lock Add cbd-tui 2023-05-17 19:08:48 +02:00
Cargo.toml cbd-tui: speak MPRIS, so the media keys reach the server 2026-07-28 01:27:28 +02:00
build.rs Implement the comprehensive CLI (stage 5) 2026-07-22 12:13:51 +02:00
schema.graphql Add cbd-tui 2023-05-17 19:08:48 +02:00