jellyfin/MediaBrowser.Controller/Subtitles/SubtitleSearchRequest.cs

54 lines
1.4 KiB
C#
Raw Normal View History

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