From ef56695c74ec91de00677278bb9e8ede8987e0d5 Mon Sep 17 00:00:00 2001 From: Marko Leinikka Date: Sat, 23 Mar 2024 00:37:17 +0900 Subject: [PATCH] fix: matching title hashes --- pkg/db/gallery.go | 2 +- pkg/metadata/title.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/db/gallery.go b/pkg/db/gallery.go index f028334..0f8eed8 100644 --- a/pkg/db/gallery.go +++ b/pkg/db/gallery.go @@ -733,7 +733,7 @@ func GetSeries() ([]string, error) { // TitleHashMatch returns true if the title hash of the gallery matches the stored hash. func TitleHashMatch(galleryUUID string) bool { - stmt := SELECT(Gallery.UUID, Gallery.Title, Reference.MetaTitleHash). + stmt := SELECT(Gallery.UUID.AS("UUID"), Gallery.Title.AS("Title"), Reference.MetaTitleHash.AS("MetaTitleHash")). FROM(Gallery.Table. LEFT_JOIN(Reference, Reference.GalleryUUID.EQ(String(galleryUUID))), ). diff --git a/pkg/metadata/title.go b/pkg/metadata/title.go index 1fb7a5e..8b8edd1 100644 --- a/pkg/metadata/title.go +++ b/pkg/metadata/title.go @@ -152,7 +152,7 @@ func ParseTitles(tryNative bool, overwrite bool) { zap.String("gallery", gallery.UUID), zap.String("err", err.Error())) } - log.Z.Info("metadata parsed based on title", + log.Z.Info("metadata parsed based from the title", zap.String("uuid", gallery.UUID), zap.String("title", gallery.Title)) }