mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -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();
|
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);
|
audio.AddGenre(genre);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user