aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto/DtoService.cs
diff options
context:
space:
mode:
author1hitsong <3330318+1hitsong@users.noreply.github.com>2022-09-10 14:58:03 -0400
committer1hitsong <3330318+1hitsong@users.noreply.github.com>2022-09-11 15:50:27 -0400
commit9d5cf67dfe2d5871d42a55a5e114c5ead1036ff0 (patch)
treeb89a9f63b2d76314d6ae2ee8aeb43991b1958a76 /Emby.Server.Implementations/Dto/DtoService.cs
parent23ec35d3965e950f710c7cf6294145c601a6885b (diff)
Create ILyricsProvider
Diffstat (limited to 'Emby.Server.Implementations/Dto/DtoService.cs')
-rw-r--r--Emby.Server.Implementations/Dto/DtoService.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Dto/DtoService.cs b/Emby.Server.Implementations/Dto/DtoService.cs
index 09ba36851..96717cff5 100644
--- a/Emby.Server.Implementations/Dto/DtoService.cs
+++ b/Emby.Server.Implementations/Dto/DtoService.cs
@@ -7,6 +7,7 @@ using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
+using Jellyfin.Api.Helpers;
using Jellyfin.Data.Entities;
using Jellyfin.Data.Enums;
using Jellyfin.Extensions;
@@ -139,6 +140,10 @@ namespace Emby.Server.Implementations.Dto
{
LivetvManager.AddInfoToProgramDto(new[] { (item, dto) }, options.Fields, user).GetAwaiter().GetResult();
}
+ else if (item is Audio)
+ {
+ dto.HasLocalLyricsFile = ItemHelper.HasLyricFile(item.Path);
+ }
if (item is IItemByName itemByName
&& options.ContainsField(ItemFields.ItemCounts))