Skip to content

Commit

Permalink
google photos: disregard album metadata and use dir name as album title
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Oct 9, 2023
1 parent ee4ef82 commit d9b0165
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions assets/gp/googlephotos.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,7 @@ func (to *Takeout) walk(ctx context.Context, fsys fs.FS) error {
md, err := fshelper.ReadJSON[googleMetaData](fsys, name)
if err == nil {
if md.isAlbum() {
title := md.Title
if title == "" {
title = path.Base(dir)
}
to.albumsByDir[dir] = title
to.albumsByDir[dir] = path.Base(dir)
} else {
l := to.jsonByDirByBase[dir]
if l == nil {
Expand Down

0 comments on commit d9b0165

Please sign in to comment.