mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Fixed segment providers never presented to UI (#13060)
This commit is contained in:
@@ -867,6 +867,16 @@ public class LibraryController : BaseJellyfinApiController
|
||||
.DistinctBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ToArray();
|
||||
|
||||
result.MediaSegmentProviders = plugins
|
||||
.SelectMany(i => i.Plugins.Where(p => p.Type == MetadataPluginType.MediaSegmentProvider))
|
||||
.Select(i => new LibraryOptionInfoDto
|
||||
{
|
||||
Name = i.Name,
|
||||
DefaultEnabled = true
|
||||
})
|
||||
.DistinctBy(i => i.Name, StringComparer.OrdinalIgnoreCase)
|
||||
.ToArray();
|
||||
|
||||
var typeOptions = new List<LibraryTypeOptionsDto>();
|
||||
|
||||
foreach (var type in types)
|
||||
|
||||
Reference in New Issue
Block a user