mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
Merge pull request #1246 from softworkz/EmptyEpisodeTitleFix
Fix exception when episode title is null
This commit is contained in:
commit
e79c7c8265
1 changed files with 9 additions and 1 deletions
|
@ -504,7 +504,15 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
|
|||
private string GetEpisodeFileName(string sourcePath, string seriesName, int seasonNumber, int episodeNumber, int? endingEpisodeNumber, string episodeTitle, TvFileOrganizationOptions options, int? maxLength)
|
||||
{
|
||||
seriesName = _fileSystem.GetValidFilename(seriesName).Trim();
|
||||
|
||||
if (episodeTitle == null)
|
||||
{
|
||||
episodeTitle = string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
episodeTitle = _fileSystem.GetValidFilename(episodeTitle).Trim();
|
||||
}
|
||||
|
||||
var sourceExtension = (Path.GetExtension(sourcePath) ?? string.Empty).TrimStart('.');
|
||||
|
||||
|
|
Loading…
Reference in a new issue