mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
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