mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-16 07:12:18 +01:00
update item by name validators
This commit is contained in:
@@ -9,6 +9,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using System.Xml;
|
||||
using CommonIO;
|
||||
using MediaBrowser.Controller.Library;
|
||||
using MediaBrowser.Model.Logging;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
|
||||
@@ -793,7 +794,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
if (!string.IsNullOrWhiteSpace(artists))
|
||||
{
|
||||
audio.Artists = SplitArtists(artists, new[] { '/', ';' }, false)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.DistinctNames()
|
||||
.ToList();
|
||||
}
|
||||
else
|
||||
@@ -806,7 +807,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
else
|
||||
{
|
||||
audio.Artists = SplitArtists(artist, _nameDelimiters, true)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.DistinctNames()
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
@@ -828,7 +829,7 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
else
|
||||
{
|
||||
audio.AlbumArtists = SplitArtists(albumArtist, _nameDelimiters, true)
|
||||
.Distinct(StringComparer.OrdinalIgnoreCase)
|
||||
.DistinctNames()
|
||||
.ToList();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user