mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
Fixed: Include extension when calculating maximum episode title length when renaming files
Fixed: Option to override max filename length with MAX_NAME environment variable Closes #3888
This commit is contained in:
@@ -90,8 +90,7 @@ namespace NzbDrone.Core.MediaFiles
|
||||
}
|
||||
|
||||
var seasonNumber = episodesInFile.First().SeasonNumber;
|
||||
var newName = _filenameBuilder.BuildFileName(episodesInFile, series, file);
|
||||
var newPath = _filenameBuilder.BuildFilePath(series, seasonNumber, newName, Path.GetExtension(episodeFilePath));
|
||||
var newPath = _filenameBuilder.BuildFilePath(episodesInFile, series, file, Path.GetExtension(episodeFilePath));
|
||||
|
||||
if (!episodeFilePath.PathEquals(newPath, StringComparison.Ordinal))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user