diff options
| author | Bond-009 <bond.009@outlook.com> | 2024-08-24 00:00:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-24 00:00:38 +0200 |
| commit | e21144503494137e6f126737a2b6d3f2398e3663 (patch) | |
| tree | 7c53cb5d46820db6e7b6dc78f65a9cbef01f7226 /Jellyfin.Api/Controllers/LibraryController.cs | |
| parent | dea69e800f2ed19fb783183ba6257a35c90e4923 (diff) | |
| parent | c9e800af6425ea5f63b08e417b4d27383a713e43 (diff) | |
Merge pull request #12397 from crobibero/lyrics-finale
Add lyrics library options, add download scheduled task
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/LibraryController.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs index 62cb59335..afc93c3a8 100644 --- a/Jellyfin.Api/Controllers/LibraryController.cs +++ b/Jellyfin.Api/Controllers/LibraryController.cs @@ -857,6 +857,16 @@ public class LibraryController : BaseJellyfinApiController .DistinctBy(i => i.Name, StringComparer.OrdinalIgnoreCase) .ToArray(); + result.LyricFetchers = plugins + .SelectMany(i => i.Plugins.Where(p => p.Type == MetadataPluginType.LyricFetcher)) + .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) |
