Bind the folder name an item-by-name entity resolves to

This commit is contained in:
Shadowghost
2026-08-25 20:19:52 +02:00
parent 422b2bb3d9
commit 8c0775e941
8 changed files with 99 additions and 24 deletions
+1 -4
View File
@@ -78,10 +78,7 @@ namespace MediaBrowser.Controller.Entities
public static string GetPath(string name, bool normalizeName)
{
// Trim the period at the end because windows will have a hard time with that
var validName = normalizeName ?
FileSystem.GetValidFilename(name).Trim().TrimEnd('.') :
name;
var validName = normalizeName ? GetItemByNameFolderName(name) : name;
return System.IO.Path.Combine(ConfigurationManager.ApplicationPaths.StudioPath, validName);
}