From 6414471acebecdf8a1e448c6baa8c316cbce60d8 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Sat, 2 Sep 2023 13:03:48 -0500 Subject: [PATCH] fix emby movie libraries (#1410) --- CHANGELOG.md | 1 + .../Data/Repositories/EmbyMovieRepository.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bd1c12fca..5b7e7c1e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix subtitle scaling when using QSV hardware acceleration - Fix log viewer crash when log file contains invalid data - Clean channel guide cache on startup (delete channels that no longer exist) +- Fix Emby movie libraries so local file access is not required ### Changed - Optimize transcoding session to only work ahead (at max speed) for 2 minutes before throttling to realtime diff --git a/ErsatzTV.Infrastructure/Data/Repositories/EmbyMovieRepository.cs b/ErsatzTV.Infrastructure/Data/Repositories/EmbyMovieRepository.cs index ddb955b3d..8313890fb 100644 --- a/ErsatzTV.Infrastructure/Data/Repositories/EmbyMovieRepository.cs +++ b/ErsatzTV.Infrastructure/Data/Repositories/EmbyMovieRepository.cs @@ -89,7 +89,7 @@ public class EmbyMovieRepository : IEmbyMovieRepository foreach (int id in maybeId) { return await dbContext.Connection.ExecuteAsync( - @"UPDATE MediaItem SET State = 2 WHERE Id = @Id", + @"UPDATE MediaItem SET State = 3 WHERE Id = @Id", new { Id = id }).Map(count => count > 0 ? Some(id) : None); }