Skip to content

Commit

Permalink
Improve(provider): show provider for actor search (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Jun 12, 2024
1 parent 89ef770 commit b44881d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Jellyfin.Plugin.MetaTube/Providers/ActorProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ public async Task<IEnumerable<RemoteSearchResult>> GetSearchResults(
{
var result = new RemoteSearchResult
{
Name = m.Name,
Name = $"[{m.Provider}] {m.Name}",
SearchProviderName = Name,
ImageUrl = m.Images?.Any() == true
? ApiClient.GetPrimaryImageApiUrl(m.Provider, m.Id, m.Images[0], 0.5, true)
? ApiClient.GetPrimaryImageApiUrl(m.Provider, m.Id, m.Images.First(), 0.5, true)
: string.Empty
};
result.SetPid(Name, m.Provider, m.Id);
Expand All @@ -110,10 +110,10 @@ private static string FormatOverview(ActorInfo a)
var info = new List<(string, string)>
{
("別名", string.Join(", ", aliases ?? Enumerable.Empty<string>())),
("身長", a.Height > 0 ? $"{a.Height}cm" : string.Empty),
("血液型", !string.IsNullOrEmpty(a.BloodType) ? $"{a.BloodType}" : string.Empty),
("カップサイズ", a.CupSize),
("3サイズ", a.Measurements),
("カップサイズ", a.CupSize),
("身長", a.Height > 0 ? $"{a.Height}cm" : string.Empty),
("血液型", !string.IsNullOrWhiteSpace(a.BloodType) ? $"{a.BloodType}" : string.Empty),
("デビュー", a.DebutDate.GetValidDateTime()?.ToString("yyyy年M月d日"))
};

Expand Down

0 comments on commit b44881d

Please sign in to comment.