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> |
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| Cargo.lock | ||
| Cargo.toml | ||
| build.rs | ||
| schema.graphql | ||