fix(watchlist): TV country full name + tmdb_rating precision rounding
TMDB's origin_country returns ISO codes (KR), not full names, causing a vault regression from South Korea to KR. buildRecord now prefers production_countries[0].name, falling back to the raw origin_country code only when absent. TMDB also now returns vote_average at full precision (6.537), causing mass diff noise against the vault's 1-decimal convention and spurious rewrites on precision drift alone. tmdb_rating is now rounded to 1 decimal place. Loki fixture updated to realistic TMDB shapes (ISO country code + production_countries) to catch this regression going forward.
This commit is contained in:
parent
fb3f52e4b0
commit
e0e0462836
3 changed files with 38 additions and 4 deletions
8
tests/fixtures/tmdb-tv-loki.json
vendored
8
tests/fixtures/tmdb-tv-loki.json
vendored
|
|
@ -33,7 +33,13 @@
|
|||
}
|
||||
],
|
||||
"origin_country": [
|
||||
"United States of America"
|
||||
"US"
|
||||
],
|
||||
"production_countries": [
|
||||
{
|
||||
"iso_3166_1": "US",
|
||||
"name": "United States of America"
|
||||
}
|
||||
],
|
||||
"created_by": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue