mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-14 00:56:37 +08:00
bug处理
bug处理
This commit is contained in:
@@ -252,6 +252,11 @@ func (s *ScraperService) applyLocalMetadataMatch(ctx context.Context, m *model.M
|
||||
Where("id = ?", m.ID).Updates(updates).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
var lib *model.Library
|
||||
if m != nil && s.repo != nil && s.repo.Library != nil {
|
||||
lib, _ = s.repo.Library.FindByID(ctx, m.LibraryID)
|
||||
}
|
||||
s.writeMediaArtworkFilesAfterScrape(ctx, m, lib)
|
||||
s.invalidateMediaCache(ctx)
|
||||
s.hub.Publish("scrape", map[string]any{
|
||||
"media_id": m.ID,
|
||||
|
||||
Reference in New Issue
Block a user