diff options
| author | cvium <clausvium@gmail.com> | 2021-05-19 08:51:46 +0200 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-05-19 08:51:46 +0200 |
| commit | 1027792b16996e3fe7e4835805204e8c91beda01 (patch) | |
| tree | 390517b1980fc8e8535b836fb8cdc336e38f02fa /Emby.Naming | |
| parent | 81ac11828bbf9310a507af034b0d749323db3688 (diff) | |
Review changes
Diffstat (limited to 'Emby.Naming')
| -rw-r--r-- | Emby.Naming/Video/VideoResolver.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Naming/Video/VideoResolver.cs b/Emby.Naming/Video/VideoResolver.cs index d1c294f4fd..27e73208c6 100644 --- a/Emby.Naming/Video/VideoResolver.cs +++ b/Emby.Naming/Video/VideoResolver.cs @@ -59,7 +59,7 @@ namespace Emby.Naming.Video } bool isStub = false; - ReadOnlySpan<char> container = null; + ReadOnlySpan<char> container = ReadOnlySpan<char>.Empty; string? stubType = null; if (!isDirectory) @@ -105,7 +105,7 @@ namespace Emby.Naming.Video return new VideoFileInfo( path: path, - container: container.ToString(), + container: container.IsEmpty ? null : container.ToString(), isStub: isStub, name: name, year: year, |
