revert underscore as a multiversion separator

This commit is contained in:
cvium 2021-03-15 23:24:59 +01:00
parent baa43c6b41
commit 23c3188501
2 changed files with 2 additions and 6 deletions

View File

@ -235,7 +235,6 @@ namespace Emby.Naming.Video
// The CleanStringParser should have removed common keywords etc.
return string.IsNullOrEmpty(testFilename)
|| testFilename[0] == '-'
|| testFilename[0] == '_'
|| Regex.IsMatch(testFilename, @"^\[([^]]*)\]");
}

View File

@ -295,12 +295,9 @@ namespace Jellyfin.Naming.Tests.Video
FullName = i
}).ToList()).ToList();
Assert.Single(result);
Assert.Equal(7, result.Count);
Assert.Empty(result[0].Extras);
Assert.Equal(6, result[0].AlternateVersions.Count);
Assert.False(result[0].AlternateVersions[2].Is3D);
Assert.True(result[0].AlternateVersions[3].Is3D);
Assert.True(result[0].AlternateVersions[4].Is3D);
Assert.Empty(result[0].AlternateVersions);
}
[Fact]