Repository navigation
Match TMDBHelper 6.20.8: schema version 51 and NULL external IDs - #9
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
TMDBHelper raised ItemDetails.db to version 51 without changing any table, and now stores NULL instead of the text "None" for a missing external ID. - Write version 51, and upgrade a version 50 database in place, so a crawl in progress keeps working. - Store NULL for a null external ID. A real ID still replaces a "None" that an older build left. - Read the add-on's table definitions as data in addon-schema.py, instead of running its code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LG44gZSSKSAXLazAYpSG4A
xbmc4lyfe
force-pushed
the
claude/addon-schema-v51
branch
from
November 5, 2026 12:22
92a3214 to
bae310f
Compare
Contributor
Author
|
@codex review Generated by Claude Code |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
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.
Requested by Allen · project thread
Follows #7, which is now merged into main.
What changed upstream
I compared upstream
plugin.video.themoviedb.helperat3f2338b(v6.20.8, 2026-11-05) against ourschema/ItemDetails.sql. I built both schemas and diffed every table, column, type, default, foreign key, unique constraint, and index. They match. Only two things differ:database_versionto 51 in f8bed2d2 without changing any table. The version 51 migration is now empty (b79e9b4d). TMDBHelper 6.20.2 and later bump our version 50 database to 51 without dropping anything. Our writer would then refuse that database.mappings.py, so a null external ID is now stored as NULL, not the text"None".Expiry (30 days, 7 days for airing shows), datalevel, and the cache-hit conditions are unchanged. The other database changes (the item details service, ratings providers, Fanart.tv URL encoding on read, mmap size) don't change what's stored.
This PR
open_writerupgrades a version 50 database in place, so the crawl in progress keeps working after a rebuild."None"from an older build.scripts/addon-schema.pyreadstabledef.pywithast.literal_eval, so it doesn't run the add-on's code.schema/ItemDetails.sqland the test fixture. Only the version line changed. Updated the version note in the docs.Testing
cargo test: all pass, including new tests for the version 50 upgrade, refusing unknown versions, NULL IDs, and replacing legacy"None".cargo clippy --all-targets -- -D warnings: clean.Generated by Claude Code