diff --git a/CHANGELOG.md b/CHANGELOG.md index 5112248a9..0780dfd05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix `HLS Segmenter V2` segment duration (previously 10s, now 4s) - Fix `HLS Segmenter V2` error video generation - Fix MySql database migrations +- Fix Plex library scans with MySql/MariaDB - Fix block playout playback when no deco is configured ### Changed diff --git a/ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs index 277b35900..61cdfa55b 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs @@ -264,7 +264,7 @@ public class PlexMovieRepository : IPlexMovieRepository new { file.Path, file.Id }); await dbContext.Connection.ExecuteAsync( - @"UPDATE PlexMediaFile SET Key = @Key WHERE Id = @Id", + @"UPDATE PlexMediaFile SET `Key` = @Key WHERE Id = @Id", new { file.Key, file.Id }); } } diff --git a/ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs index b4a6ec6d4..f06ed4c02 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs @@ -559,7 +559,7 @@ public class PlexTelevisionRepository : IPlexTelevisionRepository new { file.Path, file.Id }); await dbContext.Connection.ExecuteAsync( - @"UPDATE PlexMediaFile SET Key = @Key WHERE Id = @Id", + @"UPDATE PlexMediaFile SET `Key` = @Key WHERE Id = @Id", new { file.Key, file.Id }); }