Fix podcast search and missing episodes; Ctrl+F for search #20

Merged
mett merged 1 commit from fix/podcast-search-and-home into main 2026-10-29 02:41:31 +01:00
Owner

Podcast search and missing episodes

  • Search error (error decoding response body on a podcast library) and episodes missing from the home shelves most likely share one cause: ABS data from RSS feeds has null or numeric values where Cushion expected strings or numbers. A single such field failed the whole search, and library::parse_all dropped shelf entries silently.
  • Lenient decoding for null/numeric season, episode, publishedAt, publishedYear, audio file fields, genres and similar.
  • A single search hit that does not decode is skipped (and logged) instead of failing the search.
  • parse now reports the real serde error instead of reqwest's "error decoding response body".
  • Skipped entries and other warnings are logged; run with RUST_LOG=warn in a terminal to see them (env_logger).
  • Ctrl+F opens the search, like Ctrl+K.

Tests

  • Unit tests with null/numeric feed fields and a bad search hit; cargo fmt, clippy, pnpm check, prettier clean; cargo test incl. live tests: all pass.
  • Not verified against the real server (abs.duckflix.de): I could not reproduce the exact response. If search or the home shelf still misses Darknet Diaries, start the app from a terminal and look for "skipping ... does not decode"; it names the field.

🤖 Generated with Claude Code

## Podcast search and missing episodes - **Search error** (`error decoding response body` on a podcast library) and **episodes missing from the home shelves** most likely share one cause: ABS data from RSS feeds has `null` or numeric values where Cushion expected strings or numbers. A single such field failed the whole search, and `library::parse_all` dropped shelf entries silently. - Lenient decoding for `null`/numeric `season`, `episode`, `publishedAt`, `publishedYear`, audio file fields, genres and similar. - A single search hit that does not decode is skipped (and logged) instead of failing the search. - `parse` now reports the real serde error instead of reqwest's "error decoding response body". - Skipped entries and other warnings are logged; run with `RUST_LOG=warn` in a terminal to see them (`env_logger`). - **Ctrl+F** opens the search, like Ctrl+K. ## Tests - Unit tests with null/numeric feed fields and a bad search hit; `cargo fmt`, clippy, `pnpm check`, prettier clean; `cargo test` incl. live tests: all pass. - **Not verified against the real server** (abs.duckflix.de): I could not reproduce the exact response. If search or the home shelf still misses Darknet Diaries, start the app from a terminal and look for "skipping ... does not decode"; it names the field. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Fix podcast search and hidden episodes; Ctrl+F opens search
Some checks failed
CI / linux (pull_request) Has been cancelled
CI / fedora (pull_request) Has been cancelled
CI / windows (pull_request) Has been cancelled
648a20444e
Decoding was too strict for feed data: null or numeric fields made whole
search responses fail, and shelf entries that did not decode were dropped
silently. Make the fields lenient, skip single bad search hits, report the
real decode error, and log skipped entries (env_logger, RUST_LOG).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mett merged commit d0a3ab1fb0 into main 2026-10-29 02:41:31 +01:00
Sign in to join this conversation.
No description provided.