fix: refresh library artwork previews

This commit is contained in:
ShukeBta
2026-05-29 10:13:34 +08:00
parent bbf8f41507
commit 00b9c1bb79
4 changed files with 228 additions and 91 deletions
+6
View File
@@ -267,6 +267,12 @@ func (r *MediaRepository) Upsert(ctx context.Context, m *model.Media) error {
updates["nsfw"] = true
}
}
if m.PosterURL != "" {
updates["poster_url"] = m.PosterURL
}
if m.BackdropURL != "" {
updates["backdrop_url"] = m.BackdropURL
}
if lib := m.LibraryID; lib != "" && lib != existing.LibraryID {
updates["library_id"] = m.LibraryID
}