Browse Source

add support for aif, aifc, aiff (#2325)

* adds .aiff to supported audio file extension in local folder scanner

* add support for aif, aifc, aiff

---------

Co-authored-by: Jason Dove <1695733+jasongdove@users.noreply.github.com>
pull/2395/head
khreezy 4 months ago committed by GitHub
parent
commit
cb78b21d1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 8
      ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs
  3. 4
      ErsatzTV.Scanner/Core/Metadata/LocalFolderScanner.cs

1
CHANGELOG.md

@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- This allows the exact same content on different channels with different channel settings
- `Playout Offset` can be used to offset the times of scheduled playout items from the mirror source channel
- e.g. -2 hours will cause the mirror channel to play content 2 hours before the mirror source channel
- Add support for `.aif`, `.aifc`, `.aiff` song files
### Fixed
- Fix transcoding content with bt709/pc color metadata

8
ErsatzTV.Infrastructure/Metadata/LocalStatisticsProvider.cs

@ -67,6 +67,14 @@ public class LocalStatisticsProvider : ILocalStatisticsProvider @@ -67,6 +67,14 @@ public class LocalStatisticsProvider : ILocalStatisticsProvider
try
{
string mediaItemPath = mediaItem.GetHeadVersion().MediaFiles.Head().Path;
// aifc is unsupported here
string extension = Path.GetExtension(mediaItemPath);
if (extension.Contains("aifc", StringComparison.OrdinalIgnoreCase))
{
return new List<SongTag>();
}
var song = File.Create(mediaItemPath);
var result = new List<SongTag>();

4
ErsatzTV.Scanner/Core/Metadata/LocalFolderScanner.cs

@ -25,8 +25,8 @@ public abstract class LocalFolderScanner @@ -25,8 +25,8 @@ public abstract class LocalFolderScanner
public static readonly ImmutableHashSet<string> AudioFileExtensions = new[]
{
".aac", ".alac", ".dff", ".dsf", ".flac", ".mp3", ".m4a", ".ogg", ".opus", ".oga", ".ogx", ".spx", ".wav",
".wma"
".aac", ".aif", ".aifc", ".aiff", ".alac", ".dff", ".dsf", ".flac", ".mp3",
".m4a", ".ogg", ".opus", ".oga", ".ogx", ".spx", ".wav", ".wma"
}.ToImmutableHashSet(StringComparer.OrdinalIgnoreCase);
public static readonly ImmutableHashSet<string> ImageFileExtensions = new[]

Loading…
Cancel
Save