Browse Source

fix subtitle title updates (#2604)

pull/2605/head
Jason Dove 2 months ago committed by GitHub
parent
commit
f79fa9a50a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      CHANGELOG.md
  2. 1
      ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs

3
CHANGELOG.md

@ -34,6 +34,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -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)

1
ErsatzTV.Infrastructure/Data/Repositories/MetadataRepository.cs

@ -717,6 +717,7 @@ public class MetadataRepository(IDbContextFactory<TvContext> dbContextFactory) : @@ -717,6 +717,7 @@ public class MetadataRepository(IDbContextFactory<TvContext> dbContextFactory) :
existingSubtitle.SubtitleKind = incomingSubtitle.SubtitleKind;
existingSubtitle.Codec = incomingSubtitle.Codec;
existingSubtitle.DateUpdated = incomingSubtitle.DateUpdated;
existingSubtitle.Title = incomingSubtitle.Title;
dbContext.Entry(existingSubtitle).State = EntityState.Modified;
}

Loading…
Cancel
Save