From 11f99216a317f490a8e01dcb4a93facb7b4efbb1 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:16:53 -0500 Subject: [PATCH] fix plex library scans with mysql/mariadb (#1689) --- CHANGELOG.md | 1 + .../Data/Repositories/PlexMovieRepository.cs | 2 +- .../Data/Repositories/PlexTelevisionRepository.cs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5112248a..0780dfd0 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 277b3590..61cdfa55 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 b4a6ec6d..f06ed4c0 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 }); }