mirror of
https://github.com/metatube-community/jellyfin-plugin-metatube.git
synced 2026-02-03 02:25:02 +08:00
Add Provider Model
This commit is contained in:
@@ -2,17 +2,11 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.JavTube.Models;
|
||||
|
||||
public class ActorSearchResult
|
||||
public class ActorSearchResult : ProviderInfo
|
||||
{
|
||||
[JsonPropertyName("homepage")] public string Homepage { get; set; }
|
||||
|
||||
[JsonPropertyName("id")] public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("images")] public string[] Images { get; set; }
|
||||
|
||||
[JsonPropertyName("name")] public string Name { get; set; }
|
||||
|
||||
[JsonPropertyName("provider")] public string Provider { get; set; }
|
||||
}
|
||||
|
||||
public class ActorMetadata : ActorSearchResult
|
||||
|
||||
@@ -2,18 +2,12 @@ using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.JavTube.Models;
|
||||
|
||||
public class MovieSearchResult
|
||||
public class MovieSearchResult : ProviderInfo
|
||||
{
|
||||
[JsonPropertyName("cover_url")] public string CoverUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("homepage")] public string Homepage { get; set; }
|
||||
|
||||
[JsonPropertyName("id")] public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("number")] public string Number { get; set; }
|
||||
|
||||
[JsonPropertyName("provider")] public string Provider { get; set; }
|
||||
|
||||
[JsonPropertyName("release_date")] public DateTime ReleaseDate { get; set; }
|
||||
|
||||
[JsonPropertyName("score")] public float Score { get; set; }
|
||||
|
||||
12
Jellyfin.Plugin.JavTube/Models/Provider.cs
Normal file
12
Jellyfin.Plugin.JavTube/Models/Provider.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.JavTube.Models;
|
||||
|
||||
public class ProviderInfo
|
||||
{
|
||||
[JsonPropertyName("homepage")] public string Homepage { get; set; }
|
||||
|
||||
[JsonPropertyName("id")] public string Id { get; set; }
|
||||
|
||||
[JsonPropertyName("provider")] public string Provider { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user