Skip to content

Debugging JSON parsing issue in Plex metadata - #4

Merged
adeze merged 1 commit into
mainfrom
copilot/fix-json-parsing-issue
Jun 4, 2026
Merged

Debugging JSON parsing issue in Plex metadata#4
adeze merged 1 commit into
mainfrom
copilot/fix-json-parsing-issue

Conversation

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown

Pull request created by AI Agent

@adeze
adeze marked this pull request as ready for review June 4, 2026 10:06
Copilot AI review requested due to automatic review settings June 4, 2026 10:06
@adeze
adeze merged commit c8c5ab6 into main Jun 4, 2026
2 checks passed

Copilot AI 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.

Pull request overview

This PR updates the TPDB→Plex mapping so the isAdult field is emitted as a proper JSON boolean (true) instead of an integer (1), and aligns the unit tests to enforce that behavior.

Changes:

  • Set isAdult to True (boolean) in both match and metadata mapping outputs.
  • Update unit tests to assert isAdult is the boolean singleton True (not just truthy / not 1).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
provider/mappers/tpdb_to_plex.py Switch isAdult output from integer 1 to boolean True in mapper outputs.
tests/test_tpdb_enrichment.py Update assertions to require boolean True for isAdult.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@adeze
adeze deleted the copilot/fix-json-parsing-issue branch June 4, 2026 10:09
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.

3 participants