From 75e2f44d65b8ebf524471b99e04bc168c4c5c787 Mon Sep 17 00:00:00 2001 From: spaceyuck Date: Sat, 18 Apr 2026 13:56:01 +0000 Subject: [PATCH] image details Auto-Tag scraper moved path check out of transaction --- pkg/scraper/autotag.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/scraper/autotag.go b/pkg/scraper/autotag.go index 84fa598d4..86c15d369 100644 --- a/pkg/scraper/autotag.go +++ b/pkg/scraper/autotag.go @@ -90,6 +90,11 @@ func autotagMatchTags(ctx context.Context, path string, tagReader models.TagAuto } func (s autotagScraper) viaImage(ctx context.Context, _client *http.Client, image *models.Image) (*models.ScrapedImage, error) { + path := image.Path + if path == "" { + return nil, nil + } + var ret *models.ScrapedImage // only trim extension if image is file-based @@ -97,11 +102,6 @@ func (s autotagScraper) viaImage(ctx context.Context, _client *http.Client, imag // populate performers, studio and tags based on image path if err := txn.WithReadTxn(ctx, s.txnManager, func(ctx context.Context) error { - path := image.Path - if path == "" { - return nil - } - performers, err := autotagMatchPerformers(ctx, path, s.performerReader, trimExt) if err != nil { return fmt.Errorf("autotag scraper viaImage: %w", err)