Browse Source

fix emby movie libraries (#1410)

pull/1412/head
Jason Dove 2 years ago committed by GitHub
parent
commit
6414471ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Infrastructure/Data/Repositories/EmbyMovieRepository.cs

1
CHANGELOG.md

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

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

@ -89,7 +89,7 @@ public class EmbyMovieRepository : IEmbyMovieRepository @@ -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);
}

Loading…
Cancel
Save