mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 13:57:14 -04:00
check genres for null or whitespace
This commit is contained in:
parent
e4d950e1a5
commit
bba68471d7
@ -186,7 +186,9 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
||||
{
|
||||
audio.Genres.Clear();
|
||||
|
||||
foreach (var genre in val.Split(new[] { '/', '|' }, StringSplitOptions.RemoveEmptyEntries))
|
||||
foreach (var genre in val
|
||||
.Split(new[] { '/', '|' }, StringSplitOptions.RemoveEmptyEntries)
|
||||
.Where(i => !string.IsNullOrWhiteSpace(i)))
|
||||
{
|
||||
audio.AddGenre(genre);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user