Browse Source

allow custom missing album art

pull/2632/head
Jason Dove 9 months ago
parent
commit
f07163f905
No known key found for this signature in database
  1. 2
      CHANGELOG.md
  2. 2
      ErsatzTV.Core/FFmpeg/SongVideoGenerator.cs
  3. 2
      ErsatzTV.Scanner.Tests/Core/FFmpeg/TranscodingTests.cs
  4. 2
      ErsatzTV/ErsatzTV.csproj
  5. 0
      ErsatzTV/Resources/_song_album_cover_512.png
  6. 2
      ErsatzTV/Services/RunOnce/ResourceExtractorService.cs

2
CHANGELOG.md

@ -41,6 +41,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -41,6 +41,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Error streams will prioritize using `background.png` if it exists
- Replacing this `background.png` file will allow custom error/offline backgrounds
- Add `Troubleshoot Playback` buttons on movie and episode detail pages
- Add song background and missing album art customization
- Default files start with an underscore; custom versions must remove the underscore
### Fixed
- Fix HLS Direct playback with Jellyfin 10.11

2
ErsatzTV.Core/FFmpeg/SongVideoGenerator.cs

@ -167,7 +167,7 @@ public class SongVideoGenerator : ISongVideoGenerator @@ -167,7 +167,7 @@ public class SongVideoGenerator : ISongVideoGenerator
{
Id = 0,
ArtworkKind = ArtworkKind.Thumbnail,
Path = Path.Combine(FileSystemLayout.ResourcesCacheFolder, "song_album_cover_512.png")
Path = _localFileSystem.GetCustomOrDefaultFile(FileSystemLayout.ResourcesCacheFolder, "song_album_cover_512.png")
});
// signal that we want to use cover art as watermark

2
ErsatzTV.Scanner.Tests/Core/FFmpeg/TranscodingTests.cs

@ -288,7 +288,7 @@ public class TranscodingTests @@ -288,7 +288,7 @@ public class TranscodingTests
localFileSystem,
LoggerFactory.CreateLogger<FFmpegLibraryProcessService>());
var songVideoGenerator = new SongVideoGenerator(tempFilePool, mockImageCache, service);
var songVideoGenerator = new SongVideoGenerator(tempFilePool, mockImageCache, service, localFileSystem);
var channel = new Channel(Guid.NewGuid())
{

2
ErsatzTV/ErsatzTV.csproj

@ -85,7 +85,7 @@ @@ -85,7 +85,7 @@
<EmbeddedResource Include="Resources\Scripts\MpegTs\run.sh" />
<EmbeddedResource Include="Resources\Scripts\MpegTs\run.bat" />
<EmbeddedResource Include="Resources\Scripts\MpegTs\mpegts.yml" />
<EmbeddedResource Include="Resources\song_album_cover_512.png" />
<EmbeddedResource Include="Resources\_song_album_cover_512.png" />
<EmbeddedResource Include="Resources\_song_background_1.png" />
<EmbeddedResource Include="Resources\_song_background_2.png" />
<EmbeddedResource Include="Resources\_song_background_3.png" />

0
ErsatzTV/Resources/song_album_cover_512.png → ErsatzTV/Resources/_song_album_cover_512.png

Before

Width:  |  Height:  |  Size: 167 KiB

After

Width:  |  Height:  |  Size: 167 KiB

2
ErsatzTV/Services/RunOnce/ResourceExtractorService.cs

@ -17,7 +17,7 @@ public class ResourceExtractorService : BackgroundService @@ -17,7 +17,7 @@ public class ResourceExtractorService : BackgroundService
Assembly assembly = typeof(ResourceExtractorService).GetTypeInfo().Assembly;
await ExtractResource(assembly, "_background.png", stoppingToken);
await ExtractResource(assembly, "song_album_cover_512.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);
await ExtractResource(assembly, "_song_background_3.png", stoppingToken);

Loading…
Cancel
Save