fix plex library scans with mysql/mariadb (#1689)

This commit is contained in:
Jason Dove
2024-04-24 13:16:53 -05:00
committed by GitHub
parent b9a7ad2f5a
commit 11f99216a3
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
@@ -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 });
}
}
@@ -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 });
}