Repository navigation
Search finds episodes by their own titles - #44
Merged
Merged
Conversation
The local library copy held movies and shows only, so an episode's title was never searched: "Duck Duck Loon" found nothing even with the episode in the library. Each library refresh now also reads every episode's title, season and number (Source.library_episodes, Plex type=4 trimmed, Jellyfin Episode items) into episodes/episodes_fts. Search returns title matches in `episodes`, shown in an Episodes row with Play and Open the show, and the AI answer sees them. ADR 0030 (Proposed). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
jpittelkow
added a commit
that referenced
this pull request
Nov 10, 2026
Version files and CHANGELOG for 0.2.8: search finds episodes by their own titles (#44). After merge, tag `v0.2.8` on the merge commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Jeff Pittelkow <6314033+jpittelkow@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes and why
Search only knew movie and show names, so typing an episode's title found nothing even when the episode was in the library. Example: "Duck Duck Loon" (Wild Kratts S07E15 "Duck, Duck, Loon!"). #43 makes sure the words as typed are searched for, but the local library copy had no episode titles for them to match. The live guide can't fill the gap either: guides fed from XMLTV through Plex carry no episode titles at all.
Source.library_episodes(), called right afterlibrary()on the same timer.type=4, leaving out summaries, artwork and media details. That roughly halves each page.Episodeitems for the configured user.episodes+episodes_fts(title only), rebuilt on each library refresh and cleared on a server switch.search.runreturnsepisodesfor text searches over the library.split_typedhandles episodes too.data-rating-keyplay path, busy check included) and "Open the show"./api/answerlists episode matches, so the AI's one-line answer can name the episode.Requested by the maintainer. There's no separate issue.
How it was tested
python scripts/check.pyprints "all checks passed" (tests, guard tests, privacy, JS)tests/test_episodes.py)CHANGELOG.md(Unreleased) updated, if a user would noticeTried on real hardware: I built this branch and ran it as a separate test copy against a real Plex server with a snapshot of a real install's data. Production wasn't touched.
Not tested:
Decisions and docs
ADRs I reviewed for this area: 0005, 0012, 0015, 0016, 0029.
Sourcemethod and new tablesdocs/and the README still match the code, or were updated here (data-model, architecture, api, frontend, testing)Security (tick what applies)
X-WhatsOnor host checks, or the check for something already playing on a TVtests/test_guards.py(explain why the rule itself should change)AI use
Checks
🤖 Generated with Claude Code