Browse Source

allow error/offline background customization

pull/2624/head
Jason Dove 9 months ago
parent
commit
8ca57b71ac
No known key found for this signature in database
  1. 5
      CHANGELOG.md
  2. 4
      ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs
  3. 2
      ErsatzTV/ErsatzTV.csproj
  4. 0
      ErsatzTV/Resources/_background.png
  5. 2
      ErsatzTV/Services/RunOnce/ResourceExtractorService.cs

5
CHANGELOG.md

@ -36,6 +36,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -36,6 +36,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- This will be used as a more accurate check for interlaced content
- The result will be cached (only probed once and stored) in the database along with all other media item statistics (e.g. duration)
- This feature will currently ignore content that is not streamed from disk
- Add error/offline background customization
- Default error background is now named `_background.png`
- Error streams will prioritize using `background.png` if it exists
- Replacing this `background.png` file will allow custom error/offline backgrounds
### Fixed
- Fix HLS Direct playback with Jellyfin 10.11
@ -63,6 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -63,6 +67,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
- Use smaller batch size for search index updates (100, down from 1000)
- This should help newly scanned items appear in the UI more quickly
- Replace favicon and logo in background image used for error streams
## [25.8.0] - 2025-10-26
### Added

4
ErsatzTV.Core/FFmpeg/FFmpegLibraryProcessService.cs

@ -760,6 +760,10 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService @@ -760,6 +760,10 @@ public class FFmpegLibraryProcessService : IFFmpegProcessService
}
string videoPath = Path.Combine(FileSystemLayout.ResourcesCacheFolder, "background.png");
if (!File.Exists(videoPath))
{
videoPath = Path.Combine(FileSystemLayout.ResourcesCacheFolder, "_background.png");
}
var videoVersion = BackgroundImageMediaVersion.ForPath(videoPath, desiredResolution);

2
ErsatzTV/ErsatzTV.csproj

@ -76,7 +76,7 @@ @@ -76,7 +76,7 @@
<ItemGroup>
<EmbeddedResource Include="Resources\Fonts\Sen.ttf" />
<EmbeddedResource Include="Resources\background.png" />
<EmbeddedResource Include="Resources\_background.png" />
<EmbeddedResource Include="Resources\Fonts\OPTIKabel-Heavy.otf" />
<EmbeddedResource Include="Resources\Fonts\Roboto-Regular.ttf" />
<EmbeddedResource Include="Resources\Scripts\_threePartEpisodes.js" />

0
ErsatzTV/Resources/background.png → ErsatzTV/Resources/_background.png

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

2
ErsatzTV/Services/RunOnce/ResourceExtractorService.cs

@ -16,7 +16,7 @@ public class ResourceExtractorService : BackgroundService @@ -16,7 +16,7 @@ public class ResourceExtractorService : BackgroundService
Assembly assembly = typeof(ResourceExtractorService).GetTypeInfo().Assembly;
await ExtractResource(assembly, "background.png", stoppingToken);
await ExtractResource(assembly, "_background.png", stoppingToken);
await ExtractResource(assembly, "song_album_cover_512.png", stoppingToken);
await ExtractResource(assembly, "song_background_1.png", stoppingToken);
await ExtractResource(assembly, "song_background_2.png", stoppingToken);

Loading…
Cancel
Save