mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-08-11 09:13:54 -04:00
fixed an issue getting collection type
This commit is contained in:
parent
0e4972f7e6
commit
e9722763b4
@ -1456,9 +1456,10 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||||||
})
|
})
|
||||||
.Select(i => i.CollectionType)
|
.Select(i => i.CollectionType)
|
||||||
.Where(i => !string.IsNullOrEmpty(i))
|
.Where(i => !string.IsNullOrEmpty(i))
|
||||||
.Distinct();
|
.Distinct()
|
||||||
|
.ToList();
|
||||||
|
|
||||||
return collectionTypes.SingleOrDefault();
|
return collectionTypes.Count == 1 ? collectionTypes[0] : null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user