Browse Source

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

pull/1691/head
Jason Dove 1 year ago committed by GitHub
parent
commit
11f99216a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs
  3. 2
      ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs

1
CHANGELOG.md

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

2
ErsatzTV.Infrastructure/Data/Repositories/PlexMovieRepository.cs

@ -264,7 +264,7 @@ public class PlexMovieRepository : IPlexMovieRepository @@ -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 });
}
}

2
ErsatzTV.Infrastructure/Data/Repositories/PlexTelevisionRepository.cs

@ -559,7 +559,7 @@ public class PlexTelevisionRepository : IPlexTelevisionRepository @@ -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 });
}

Loading…
Cancel
Save