2022-02-17 08:03:08 +00:00
|
|
|
using Emby.Naming.Common;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Controller.MediaEncoding;
|
|
|
|
using MediaBrowser.Model.Dlna;
|
|
|
|
using MediaBrowser.Model.Globalization;
|
2022-02-28 23:16:25 +00:00
|
|
|
using MediaBrowser.Model.IO;
|
2022-06-23 13:45:55 +00:00
|
|
|
using Microsoft.Extensions.Logging;
|
2022-02-17 08:03:08 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Providers.MediaInfo
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Resolves external subtitle files for <see cref="Video"/>.
|
|
|
|
/// </summary>
|
|
|
|
public class SubtitleResolver : MediaInfoResolver
|
|
|
|
{
|
|
|
|
/// <summary>
|
2022-02-21 20:59:41 +00:00
|
|
|
/// Initializes a new instance of the <see cref="SubtitleResolver"/> class for external subtitle file processing.
|
2022-02-17 08:03:08 +00:00
|
|
|
/// </summary>
|
2022-06-23 13:45:55 +00:00
|
|
|
/// <param name="logger">The logger.</param>
|
2022-02-17 08:03:08 +00:00
|
|
|
/// <param name="localizationManager">The localization manager.</param>
|
|
|
|
/// <param name="mediaEncoder">The media encoder.</param>
|
2022-02-28 23:16:25 +00:00
|
|
|
/// <param name="fileSystem">The file system.</param>
|
2022-02-17 08:03:08 +00:00
|
|
|
/// <param name="namingOptions">The <see cref="NamingOptions"/> object containing FileExtensions, MediaDefaultFlags, MediaForcedFlags and MediaFlagDelimiters.</param>
|
|
|
|
public SubtitleResolver(
|
2022-06-23 13:45:55 +00:00
|
|
|
ILogger<SubtitleResolver> logger,
|
2022-02-17 08:03:08 +00:00
|
|
|
ILocalizationManager localizationManager,
|
|
|
|
IMediaEncoder mediaEncoder,
|
2022-02-28 23:16:25 +00:00
|
|
|
IFileSystem fileSystem,
|
2022-02-17 08:03:08 +00:00
|
|
|
NamingOptions namingOptions)
|
2022-02-28 23:16:25 +00:00
|
|
|
: base(
|
2022-06-23 13:45:55 +00:00
|
|
|
logger,
|
2022-02-28 23:16:25 +00:00
|
|
|
localizationManager,
|
|
|
|
mediaEncoder,
|
|
|
|
fileSystem,
|
|
|
|
namingOptions,
|
|
|
|
DlnaProfileType.Subtitle)
|
|
|
|
{
|
2022-02-17 08:03:08 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|