From f79fa9a50a2c5b5fe4db12239754d75bcedbdaec Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Thu, 6 Nov 2025 06:03:32 -0600 Subject: [PATCH] fix subtitle title updates (#2604) --- CHANGELOG.md | 3 +++ .../Data/Repositories/MetadataRepository.cs | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ef68b443..a8c428f3b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix error/offline screen generation - Fix subtitle title sync from Jellyfin libraries - Deep scans will be required to update subtitle titles on existing media items +- Fix saving subtitle title changes to the database + - This fixes e.g. where stream selection would continue to use the original title + - This applies to all libraries (local and media server) and may require deep scans to fix ### Changed - Use smaller batch size for search index updates (100, down from 1000) diff --git a/ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs index 011c06aac..6e93a7658 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs @@ -717,6 +717,7 @@ public class MetadataRepository(IDbContextFactory dbContextFactory) : existingSubtitle.SubtitleKind = incomingSubtitle.SubtitleKind; existingSubtitle.Codec = incomingSubtitle.Codec; existingSubtitle.DateUpdated = incomingSubtitle.DateUpdated; + existingSubtitle.Title = incomingSubtitle.Title; dbContext.Entry(existingSubtitle).State = EntityState.Modified; }