diff options
| author | Bond_009 <bond.009@outlook.com> | 2021-05-20 21:28:18 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2021-05-20 22:48:53 +0200 |
| commit | 7e8428e588b3f0a0574da44081098c64fe1a47d7 (patch) | |
| tree | 4dd11afc9e5b38d46366a9fea207e1dbb82a3e56 /Jellyfin.Api/Controllers/DynamicHlsController.cs | |
| parent | e8790bfa963284863dc1126a83df72309ec30561 (diff) | |
Enable nullable reference types for Emby.Server.Implementations
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DynamicHlsController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs index b4154b361..45559fce9 100644 --- a/Jellyfin.Api/Controllers/DynamicHlsController.cs +++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs @@ -1762,9 +1762,9 @@ namespace Jellyfin.Api.Controllers private static FileSystemMetadata? GetLastTranscodingFile(string playlist, string segmentExtension, IFileSystem fileSystem) { - var folder = Path.GetDirectoryName(playlist); + var folder = Path.GetDirectoryName(playlist) ?? throw new ArgumentException("Path can't be a root directory.", nameof(playlist)); - var filePrefix = Path.GetFileNameWithoutExtension(playlist) ?? string.Empty; + var filePrefix = Path.GetFileNameWithoutExtension(playlist); try { |
