mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-28 05:10:30 +00:00
beginning remote subtitle downloading
This commit is contained in:
parent
e1dd361c7b
commit
0d025f7fb6
49 changed files with 1035 additions and 299 deletions
|
|
@ -221,6 +221,8 @@ namespace MediaBrowser.Model.Configuration
|
|||
|
||||
public NotificationOptions NotificationOptions { get; set; }
|
||||
|
||||
public SubtitleOptions SubtitleOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||
/// </summary>
|
||||
|
|
@ -284,6 +286,8 @@ namespace MediaBrowser.Model.Configuration
|
|||
UICulture = "en-us";
|
||||
|
||||
NotificationOptions = new NotificationOptions();
|
||||
|
||||
SubtitleOptions = new SubtitleOptions();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -311,4 +315,17 @@ namespace MediaBrowser.Model.Configuration
|
|||
public string From { get; set; }
|
||||
public string To { get; set; }
|
||||
}
|
||||
|
||||
public class SubtitleOptions
|
||||
{
|
||||
public bool RequireExternalSubtitles { get; set; }
|
||||
public string[] SubtitleDownloadLanguages { get; set; }
|
||||
public bool DownloadMovieSubtitles { get; set; }
|
||||
public bool DownloadEpisodeSubtitles { get; set; }
|
||||
|
||||
public SubtitleOptions()
|
||||
{
|
||||
SubtitleDownloadLanguages = new string[] { };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue