mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-07 00:08:29 +01:00
make external id's modular
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Library;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.Serialization;
|
||||
using MediaBrowser.Model.Library;
|
||||
using MediaBrowser.Model.Providers;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
@@ -77,6 +78,12 @@ namespace MediaBrowser.Model.Dto
|
||||
/// <value>The premiere date.</value>
|
||||
public DateTime? PremiereDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the external urls.
|
||||
/// </summary>
|
||||
/// <value>The external urls.</value>
|
||||
public ExternalUrl[] ExternalUrls { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the critic rating.
|
||||
/// </summary>
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
<Compile Include="LiveTv\TimerInfoDto.cs" />
|
||||
<Compile Include="Logging\NullLogger.cs" />
|
||||
<Compile Include="News\NewsItem.cs" />
|
||||
<Compile Include="Providers\ExternalIdInfo.cs" />
|
||||
<Compile Include="Providers\ImageProviderInfo.cs" />
|
||||
<Compile Include="Providers\RemoteImageInfo.cs" />
|
||||
<Compile Include="Dto\StudioDto.cs" />
|
||||
|
||||
45
MediaBrowser.Model/Providers/ExternalIdInfo.cs
Normal file
45
MediaBrowser.Model/Providers/ExternalIdInfo.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class ExternalIdInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the key.
|
||||
/// </summary>
|
||||
/// <value>The key.</value>
|
||||
public string Key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the item.
|
||||
/// </summary>
|
||||
/// <value>The type of the item.</value>
|
||||
public string ItemType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the format string.
|
||||
/// </summary>
|
||||
/// <value>The format string.</value>
|
||||
public string FormatString { get; set; }
|
||||
}
|
||||
|
||||
public class ExternalUrl
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the item.
|
||||
/// </summary>
|
||||
/// <value>The type of the item.</value>
|
||||
public string Url { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -51,6 +51,11 @@ namespace MediaBrowser.Model.Querying
|
||||
/// </summary>
|
||||
DisplayPreferencesId,
|
||||
|
||||
/// <summary>
|
||||
/// The external urls
|
||||
/// </summary>
|
||||
ExternalUrls,
|
||||
|
||||
/// <summary>
|
||||
/// Genres
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user