|
|
|
@ -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('_')
|
|
|
|
|