fix emby movie libraries (#1410)

This commit is contained in:
Jason Dove
2023-09-02 13:03:48 -05:00
committed by GitHub
parent 8b0b927a5c
commit 6414471ace
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
@@ -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);
}