diff options
| author | cvium <clausvium@gmail.com> | 2021-12-20 13:31:07 +0100 |
|---|---|---|
| committer | cvium <clausvium@gmail.com> | 2021-12-20 13:31:07 +0100 |
| commit | b880dc8a4a2d1820c6063f441edce42ab399d79e (patch) | |
| tree | 498f8767f56ce7e5c43b083dd39955d51828a51d /Emby.Server.Implementations/Dto | |
| parent | cb41dda5b3473714950a6540c4dec18e0c31c6ed (diff) | |
Use our own Contains extension
Diffstat (limited to 'Emby.Server.Implementations/Dto')
| -rw-r--r-- | Emby.Server.Implementations/Dto/DtoService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs index a34bfdb75..365aa8368 100644 --- a/Emby.Server.Implementations/Dto/DtoService.cs +++ b/Emby.Server.Implementations/Dto/DtoService.cs @@ -7,9 +7,9 @@ using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; -using System.Threading.Tasks; using Jellyfin.Data.Entities; using Jellyfin.Data.Enums; +using Jellyfin.Extensions; using MediaBrowser.Common; using MediaBrowser.Controller.Channels; using MediaBrowser.Controller.Drawing; @@ -294,7 +294,7 @@ namespace Emby.Server.Implementations.Dto path = path.TrimStart('.'); } - if (!string.IsNullOrEmpty(path) && containers.Contains(path, StringComparer.OrdinalIgnoreCase)) + if (!string.IsNullOrEmpty(path) && containers.Contains(path, StringComparison.OrdinalIgnoreCase)) { fileExtensionContainer = path; } |
