From d9b0165de19f5dc6e4b3c58fb4c377c82be3c662 Mon Sep 17 00:00:00 2001 From: simulot Date: Mon, 9 Oct 2023 11:22:49 +0200 Subject: [PATCH] google photos: disregard album metadata and use dir name as album title --- assets/gp/googlephotos.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/assets/gp/googlephotos.go b/assets/gp/googlephotos.go index 5b9d85b1..b1bff5bf 100644 --- a/assets/gp/googlephotos.go +++ b/assets/gp/googlephotos.go @@ -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 {