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; }