mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-02 18:21:48 +08:00
Improve(provider): show provider for actor search (#342)
This commit is contained in:
@@ -89,10 +89,10 @@ public class ActorProvider : BaseProvider, IRemoteMetadataProvider<Person, Perso
|
||||
{
|
||||
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);
|
||||
@@ -110,10 +110,10 @@ public class ActorProvider : BaseProvider, IRemoteMetadataProvider<Person, Perso
|
||||
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日"))
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user