mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-10 11:03:04 +03:00
Merge remote-tracking branch 'upstream/master' into external-id-type
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
@@ -11,16 +8,25 @@ namespace MediaBrowser.Model.Providers
|
||||
public class ImageProviderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// Initializes a new instance of the <see cref="ImageProviderInfo" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">The name of the image provider.</param>
|
||||
/// <param name="supportedImages">The image types supported by the image provider.</param>
|
||||
public ImageProviderInfo(string name, ImageType[] supportedImages)
|
||||
{
|
||||
Name = name;
|
||||
SupportedImages = supportedImages;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
public string Name { get; }
|
||||
|
||||
public ImageType[] SupportedImages { get; set; }
|
||||
|
||||
public ImageProviderInfo()
|
||||
{
|
||||
SupportedImages = Array.Empty<ImageType>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the supported image types.
|
||||
/// </summary>
|
||||
public ImageType[] SupportedImages { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
|
||||
@@ -6,7 +6,12 @@ namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class RemoteImageQuery
|
||||
{
|
||||
public string ProviderName { get; set; }
|
||||
public RemoteImageQuery(string providerName)
|
||||
{
|
||||
ProviderName = providerName;
|
||||
}
|
||||
|
||||
public string ProviderName { get; }
|
||||
|
||||
public ImageType? ImageType { get; set; }
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -8,23 +9,34 @@ namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class RemoteSearchResult : IHasProviderIds
|
||||
{
|
||||
public RemoteSearchResult()
|
||||
{
|
||||
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
Artists = Array.Empty<RemoteSearchResult>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the provider ids.
|
||||
/// </summary>
|
||||
/// <value>The provider ids.</value>
|
||||
public Dictionary<string, string> ProviderIds { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the year.
|
||||
/// </summary>
|
||||
/// <value>The year.</value>
|
||||
public int? ProductionYear { get; set; }
|
||||
|
||||
public int? IndexNumber { get; set; }
|
||||
|
||||
public int? IndexNumberEnd { get; set; }
|
||||
|
||||
public int? ParentIndexNumber { get; set; }
|
||||
|
||||
public DateTime? PremiereDate { get; set; }
|
||||
@@ -32,15 +44,12 @@ namespace MediaBrowser.Model.Providers
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
public string SearchProviderName { get; set; }
|
||||
|
||||
public string Overview { get; set; }
|
||||
|
||||
public RemoteSearchResult AlbumArtist { get; set; }
|
||||
|
||||
public RemoteSearchResult[] Artists { get; set; }
|
||||
|
||||
public RemoteSearchResult()
|
||||
{
|
||||
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
|
||||
Artists = new RemoteSearchResult[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -7,15 +8,25 @@ namespace MediaBrowser.Model.Providers
|
||||
public class RemoteSubtitleInfo
|
||||
{
|
||||
public string ThreeLetterISOLanguageName { get; set; }
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
public string ProviderName { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Format { get; set; }
|
||||
|
||||
public string Author { get; set; }
|
||||
|
||||
public string Comment { get; set; }
|
||||
|
||||
public DateTime? DateCreated { get; set; }
|
||||
|
||||
public float? CommunityRating { get; set; }
|
||||
|
||||
public int? DownloadCount { get; set; }
|
||||
|
||||
public bool? IsHashMatch { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -7,13 +8,19 @@ namespace MediaBrowser.Model.Providers
|
||||
public class SubtitleOptions
|
||||
{
|
||||
public bool SkipIfEmbeddedSubtitlesPresent { get; set; }
|
||||
|
||||
public bool SkipIfAudioTrackMatches { get; set; }
|
||||
|
||||
public string[] DownloadLanguages { get; set; }
|
||||
|
||||
public bool DownloadMovieSubtitles { get; set; }
|
||||
|
||||
public bool DownloadEpisodeSubtitles { get; set; }
|
||||
|
||||
public string OpenSubtitlesUsername { get; set; }
|
||||
|
||||
public string OpenSubtitlesPasswordHash { get; set; }
|
||||
|
||||
public bool IsOpenSubtitleVipAccount { get; set; }
|
||||
|
||||
public bool RequirePerfectMatch { get; set; }
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#nullable disable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
@@ -5,6 +6,7 @@ namespace MediaBrowser.Model.Providers
|
||||
public class SubtitleProviderInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user