Closed jtagcat closed 6 days ago
What is special with this photo? What is its origin?
Nothing special with the photo, might be an older takeout (2018, previously exported and deleted from gphotos). Before the patch I got 0 uploads with 7k files. I checked a few other files, same thing.
Takeout of an another account with 2012..2021 in the export got 513/-33517 uploaded, with the same issue and alike JSONs. Same patch → no problems.
The takeout can have various JSON for print works or some other things. Unknown JSON can't be taken as asset.
It's a thing with older Takeouts, that the JSON has a different format. I tried to pull both new Takeout and an older one which had more data and hit the same problem that from the old takeout 0 files would be imported. Album JSON is also a little bit different, because it includes a top-level "albumData" key.
could you share some samples of photo and albums json ?
@simulot Absolutely.
I'll post metadata JSON from the same album, but different takeouts. Old takeout is from April 2020, the new one is from June 2024. My locale is Polish, so some data is localized.
Old takeout - file metadane.json
(album) :
{
"albumData": {
"title": "Trip to Gdańsk",
"description": "",
"access": "protected",
"location": "",
"date": {
"timestamp": "1502439626",
"formatted": "11 sie 2017, 08:20:26 UTC"
},
"geoData": {
"latitude": 0.0,
"longitude": 0.0,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
}
}
}
^ notice the additional top-level key albumData
.
New takeout - file metadane.json
(album):
{
"title": "Trip to Gdańsk",
"description": "",
"access": "protected",
"date": {
"timestamp": "1502439626",
"formatted": "11 sie 2017, 08:20:26 UTC"
},
"geoData": {
"latitude": 0.0,
"longitude": 0.0,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
}
}
Old takeout - file IMG_20170803_115431469_HDR.jpg.json
(asset - photo):
{
"title": "IMG_20170803_115431469_HDR.jpg",
"description": "",
"imageViews": "0",
"creationTime": {
"timestamp": "1502439626",
"formatted": "11 sie 2017, 08:20:26 UTC"
},
"modificationTime": {
"timestamp": "1585318092",
"formatted": "27 mar 2020, 14:08:12 UTC"
},
"geoData": {
"latitude": 54.51708608333333,
"longitude": 18.54171638888889,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
},
"geoDataExif": {
"latitude": 54.51708608333333,
"longitude": 18.54171638888889,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
},
"photoTakenTime": {
"timestamp": "1501754071",
"formatted": "3 sie 2017, 09:54:31 UTC"
}
}
New takeout - file IMG_20170803_115431469_HDR.jpg.json
(asset - photo):
{
"title": "IMG_20170803_115431469_HDR.jpg",
"description": "",
"imageViews": "15",
"creationTime": {
"timestamp": "1502439626",
"formatted": "11 sie 2017, 08:20:26 UTC"
},
"photoTakenTime": {
"timestamp": "1501754071",
"formatted": "3 sie 2017, 09:54:31 UTC"
},
"geoData": {
"latitude": 54.5170861,
"longitude": 18.5417164,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
},
"geoDataExif": {
"latitude": 54.5170861,
"longitude": 18.5417164,
"altitude": 0.0,
"latitudeSpan": 0.0,
"longitudeSpan": 0.0
},
"url": "https://photos.google.com/photo/AF1QipNp7f29ZWPIDWAPMXJcNB2z7EMAGXWeTT066p9H",
"googlePhotosOrigin": {
"mobileUpload": {
"deviceFolder": {
"localFolderName": ""
},
"deviceType": "ANDROID_PHONE"
}
}
}
Thanks, it definitively deserve a look
Pull is included in 0.18.0, tested working.
Some of my takeouts have files like the following:
These are determined to be
Unknown JSON file
s.Related: https://github.com/simulot/immich-go/issues/68, https://github.com/simulot/immich-go/issues/133
isAsset
should be true, but it is done on the assumption of the (in-code) example JSON:..where
url
is present. I patched my code to first differentiate between the two error conditions, and then as a hotfix to assume unknown JSON is of assets.In the non-verbose log
JSON File not found for this file
looks confusing.failed to associate JSON file
would be more appropriate.