mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-26 07:28:43 +02:00
remove tvdb split by comma
This commit is contained in:
parent
a3c55a10f7
commit
022c242f3a
|
@ -749,7 +749,7 @@ namespace MediaBrowser.Providers.TV
|
||||||
private void AddPeople<T>(MetadataResult<T> result, string val, string personType)
|
private void AddPeople<T>(MetadataResult<T> result, string val, string personType)
|
||||||
{
|
{
|
||||||
// Sometimes tvdb actors have leading spaces
|
// Sometimes tvdb actors have leading spaces
|
||||||
foreach (var person in val.Split(new[] { '|', ',' }, StringSplitOptions.RemoveEmptyEntries)
|
foreach (var person in val.Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries)
|
||||||
.Where(i => !string.IsNullOrWhiteSpace(i))
|
.Where(i => !string.IsNullOrWhiteSpace(i))
|
||||||
.Select(str => new PersonInfo { Type = personType, Name = str.Trim() }))
|
.Select(str => new PersonInfo { Type = personType, Name = str.Trim() }))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue