Only trim file name if folder name is shorter
This commit is contained in:
parent
3442dbbaf9
commit
2aefe9ed5a
|
@ -226,8 +226,11 @@ namespace Emby.Naming.Video
|
|||
{
|
||||
testFilename = cleanName.ToString();
|
||||
}
|
||||
else if (folderName.Length <= testFilename.Length)
|
||||
{
|
||||
testFilename = testFilename.Substring(folderName.Length).Trim();
|
||||
}
|
||||
|
||||
testFilename = testFilename.Substring(folderName.Length).Trim();
|
||||
return string.IsNullOrEmpty(testFilename)
|
||||
|| testFilename[0].Equals('-')
|
||||
|| testFilename[0].Equals('_')
|
||||
|
|
Loading…
Reference in New Issue
Block a user