jellyfin-server/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.cs

52 lines
1.4 KiB
C#
Raw Normal View History

using System;
2018-12-27 23:27:57 +00:00
using System.Collections.Generic;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
2018-12-27 23:27:57 +00:00
namespace MediaBrowser.Controller.Subtitles
{
public class SubtitleSearchRequest : IHasProviderIds
{
public string Language { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string TwoLetterISOLanguageName { get; set; }
public VideoContentType ContentType { get; set; }
public string MediaPath { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string SeriesName { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string Name { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int? IndexNumber { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int? IndexNumberEnd { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int? ParentIndexNumber { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public int? ProductionYear { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public long? RuntimeTicks { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public bool IsPerfectMatch { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public Dictionary<string, string> ProviderIds { get; set; }
public bool SearchAllProviders { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] DisabledSubtitleFetchers { get; set; }
2020-06-15 21:43:52 +00:00
2018-12-27 23:27:57 +00:00
public string[] SubtitleFetcherOrder { get; set; }
public SubtitleSearchRequest()
{
SearchAllProviders = true;
ProviderIds = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
2018-12-27 21:43:48 +00:00
DisabledSubtitleFetchers = Array.Empty<string>();
SubtitleFetcherOrder = Array.Empty<string>();
2018-12-27 23:27:57 +00:00
}
}
2018-12-27 21:43:48 +00:00
}