Skip to content

feat: add unmatched command for local metadata - #7

Merged
dogbertdev merged 2 commits into
mainfrom
feat/unmatched-command
Mar 4, 2026
Merged

dogbertdev merged 2 commits into
mainfrom
feat/unmatched-command

Conversation

@dogbertdev

Copy link
Copy Markdown
Owner

Summary

  • add new plex unmatched command to list likely unmatched metadata items
  • wire command into root CLI and global output mode handling
  • parse GUID fields from Plex responses so unmatched detection can use GUID/local IDs
  • add command tests and update README/development notes

Validation

  • go test ./...
  • pre-push hooks (format/lint/tests) passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 68f0ab2c05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread internal/cmd/unmatched.go
}

itemType := anyToString(item.Type)
if filterType != "all" && itemType != filterType {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Handle episode filter against section-level metadata

The episode filter is implemented as an exact type match, but this command fetches section-level items via fetchLibraryItems (which uses /library/sections/{id}/all), so TV entries come through as show rather than episode in this codebase (see how UnwatchedCmd maps episode to show). In practice, plex unmatched --type episode will skip unmatched TV items and can return empty/partial results for normal TV libraries; either map episode to show here or remove episode from the enum/help.

Useful? React with 👍 / 👎.

@dogbertdev

Copy link
Copy Markdown
Owner Author

Addressed: now maps to section-level items (same behavior as ), and I added a unit test to cover it.

@dogbertdev

Copy link
Copy Markdown
Owner Author

Addressed: unmatched --type episode now maps to section-level show items (same behavior as unwatched), and I added a unit test to cover it.

@dogbertdev

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@dogbertdev
dogbertdev merged commit 4383eb4 into main Mar 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant