mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-18 20:24:20 +01:00
Add GPL modules
This commit is contained in:
24
MediaBrowser.Model/Providers/ExternalIdInfo.cs
Normal file
24
MediaBrowser.Model/Providers/ExternalIdInfo.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
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 URL format string.
|
||||
/// </summary>
|
||||
/// <value>The URL format string.</value>
|
||||
public string UrlFormatString { get; set; }
|
||||
}
|
||||
}
|
||||
17
MediaBrowser.Model/Providers/ExternalUrl.cs
Normal file
17
MediaBrowser.Model/Providers/ExternalUrl.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
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; }
|
||||
}
|
||||
}
|
||||
24
MediaBrowser.Model/Providers/ImageProviderInfo.cs
Normal file
24
MediaBrowser.Model/Providers/ImageProviderInfo.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections.Generic;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// Class ImageProviderInfo.
|
||||
/// </summary>
|
||||
public class ImageProviderInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name.
|
||||
/// </summary>
|
||||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
public ImageType[] SupportedImages { get; set; }
|
||||
|
||||
public ImageProviderInfo()
|
||||
{
|
||||
SupportedImages = new ImageType[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
71
MediaBrowser.Model/Providers/RemoteImageInfo.cs
Normal file
71
MediaBrowser.Model/Providers/RemoteImageInfo.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// Class RemoteImageInfo
|
||||
/// </summary>
|
||||
public class RemoteImageInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the name of the provider.
|
||||
/// </summary>
|
||||
/// <value>The name of the provider.</value>
|
||||
public string ProviderName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the URL.
|
||||
/// </summary>
|
||||
/// <value>The URL.</value>
|
||||
public string Url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets a url used for previewing a smaller version
|
||||
/// </summary>
|
||||
public string ThumbnailUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the height.
|
||||
/// </summary>
|
||||
/// <value>The height.</value>
|
||||
public int? Height { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the width.
|
||||
/// </summary>
|
||||
/// <value>The width.</value>
|
||||
public int? Width { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the community rating.
|
||||
/// </summary>
|
||||
/// <value>The community rating.</value>
|
||||
public double? CommunityRating { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the vote count.
|
||||
/// </summary>
|
||||
/// <value>The vote count.</value>
|
||||
public int? VoteCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the language.
|
||||
/// </summary>
|
||||
/// <value>The language.</value>
|
||||
public string Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type.
|
||||
/// </summary>
|
||||
/// <value>The type.</value>
|
||||
public ImageType Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the type of the rating.
|
||||
/// </summary>
|
||||
/// <value>The type of the rating.</value>
|
||||
public RatingType RatingType { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
15
MediaBrowser.Model/Providers/RemoteImageQuery.cs
Normal file
15
MediaBrowser.Model/Providers/RemoteImageQuery.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class RemoteImageQuery
|
||||
{
|
||||
public string ProviderName { get; set; }
|
||||
|
||||
public ImageType? ImageType { get; set; }
|
||||
|
||||
public bool IncludeDisabledProviders { get; set; }
|
||||
|
||||
public bool IncludeAllLanguages { get; set; }
|
||||
}
|
||||
}
|
||||
28
MediaBrowser.Model/Providers/RemoteImageResult.cs
Normal file
28
MediaBrowser.Model/Providers/RemoteImageResult.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
/// <summary>
|
||||
/// Class RemoteImageResult.
|
||||
/// </summary>
|
||||
public class RemoteImageResult
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the images.
|
||||
/// </summary>
|
||||
/// <value>The images.</value>
|
||||
public RemoteImageInfo[] Images { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the total record count.
|
||||
/// </summary>
|
||||
/// <value>The total record count.</value>
|
||||
public int TotalRecordCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the providers.
|
||||
/// </summary>
|
||||
/// <value>The providers.</value>
|
||||
public string[] Providers { get; set; }
|
||||
}
|
||||
}
|
||||
46
MediaBrowser.Model/Providers/RemoteSearchResult.cs
Normal file
46
MediaBrowser.Model/Providers/RemoteSearchResult.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class RemoteSearchResult : IHasProviderIds
|
||||
{
|
||||
/// <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; }
|
||||
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
public string SearchProviderName { get; set; }
|
||||
|
||||
public string GameSystem { 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[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
19
MediaBrowser.Model/Providers/RemoteSubtitleInfo.cs
Normal file
19
MediaBrowser.Model/Providers/RemoteSubtitleInfo.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
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; }
|
||||
}
|
||||
}
|
||||
27
MediaBrowser.Model/Providers/SubtitleOptions.cs
Normal file
27
MediaBrowser.Model/Providers/SubtitleOptions.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
|
||||
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; }
|
||||
|
||||
public SubtitleOptions()
|
||||
{
|
||||
DownloadLanguages = new string[] {};
|
||||
|
||||
SkipIfAudioTrackMatches = true;
|
||||
RequirePerfectMatch = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
8
MediaBrowser.Model/Providers/SubtitleProviderInfo.cs
Normal file
8
MediaBrowser.Model/Providers/SubtitleProviderInfo.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace MediaBrowser.Model.Providers
|
||||
{
|
||||
public class SubtitleProviderInfo
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user