Sorry for asking a similar question today. I am importing using the Trakt format JSON importer.
Input file 1: FAIL: first record has a rating
[
{
"imdb_id": "tt1234567",
"watched_at": "2009-01-01T00:00:00Z",
"rating": 6,
"rated_at": "2009-01-01T00:00:00Z"
},
{
"imdb_id": "tt2234567",
"rating": 6,
"rated_at": "2012-01-01T00:00:00Z"
}
]
Error:
error (undefined local variable or method `row' for an instance of Importers::Parsers::Json)
Input file 2: SUCCESS: I removed the rating in the first record. (The second record still has a rating.)
[
{
"imdb_id": "tt1234567",
"watched_at": "2009-01-01T00:00:00Z"
},
{
"imdb_id": "tt2234567",
"rating": 6,
"rated_at": "2012-01-01T00:00:00Z"
}
]
It did a lot of various tests. It seems like when the first record has a rating the error happens.
By the way, when an import succeeds I still don’t see the rating for tt2234567.