Skip to content

Commit

Permalink
fix: Count offile not assiciated with google JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed May 28, 2024
1 parent 6ffb62a commit eb275b6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions browser/gp/googlephotos.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,16 +429,14 @@ func (to *Takeout) passTwoWalk(ctx context.Context, w fs.FS, assetChan chan *bro
if !to.sm.IsMedia(ext) {
return nil
}
f, exist := to.catalogs[w][dir].matchedFiles[base]
if !exist {
if _, exist := to.catalogs[w][dir].unMatchedFiles[base]; exist {
to.log.Record(ctx, fileevent.AnalysisMissingAssociatedMetadata, nil, name, "hint", "process all parts of the takeout at the same time")
return nil
}

if f.md == nil {
to.log.Record(ctx, fileevent.AnalysisMissingAssociatedMetadata, nil, name, "hint", "process all parts of the takeout at the same time")
f, exist := to.catalogs[w][dir].matchedFiles[base]
if !exist {
return nil
}

finfo, err := d.Info()
if err != nil {
to.log.Record(ctx, fileevent.Error, err, name, "message", err.Error())
Expand Down

0 comments on commit eb275b6

Please sign in to comment.