mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
implement suggestions
This commit is contained in:
parent
18906d0205
commit
bd5c66b2a6
1 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ namespace Emby.Naming.Video
|
||||||
if (!string.IsNullOrEmpty(folderName)
|
if (!string.IsNullOrEmpty(folderName)
|
||||||
&& folderName.Length > 1
|
&& folderName.Length > 1
|
||||||
&& videos.All(i => i.Files.Count == 1
|
&& videos.All(i => i.Files.Count == 1
|
||||||
&& IsEligibleForMultiVersion(folderName, i.Files[0].Path))
|
&& IsEligibleForMultiVersion(folderName, i.Files[0].Path))
|
||||||
&& HaveSameYear(videos))
|
&& HaveSameYear(videos))
|
||||||
{
|
{
|
||||||
var ordered = videos.OrderBy(i => i.Name).ToList();
|
var ordered = videos.OrderBy(i => i.Name).ToList();
|
||||||
|
@ -211,8 +211,8 @@ namespace Emby.Naming.Video
|
||||||
{
|
{
|
||||||
testFilename = testFilename.Substring(folderName.Length).Trim();
|
testFilename = testFilename.Substring(folderName.Length).Trim();
|
||||||
return string.IsNullOrEmpty(testFilename)
|
return string.IsNullOrEmpty(testFilename)
|
||||||
|| testFilename[0] == '-'
|
|| testFilename[0] == '-'
|
||||||
|| string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty));
|
|| string.IsNullOrWhiteSpace(Regex.Replace(testFilename, @"\[([^]]*)\]", string.Empty));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue