| | 1 | | using Emby.Naming.Common; |
| | 2 | | using MediaBrowser.Controller.Entities.Audio; |
| | 3 | | using MediaBrowser.Controller.MediaEncoding; |
| | 4 | | using MediaBrowser.Model.Dlna; |
| | 5 | | using MediaBrowser.Model.Globalization; |
| | 6 | | using MediaBrowser.Model.IO; |
| | 7 | | using Microsoft.Extensions.Logging; |
| | 8 | |
|
| | 9 | | namespace MediaBrowser.Providers.MediaInfo; |
| | 10 | |
|
| | 11 | | /// <summary> |
| | 12 | | /// Resolves external lyric files for <see cref="Audio"/>. |
| | 13 | | /// </summary> |
| | 14 | | public class LyricResolver : MediaInfoResolver |
| | 15 | | { |
| | 16 | | /// <summary> |
| | 17 | | /// Initializes a new instance of the <see cref="LyricResolver"/> class for external subtitle file processing. |
| | 18 | | /// </summary> |
| | 19 | | /// <param name="logger">The logger.</param> |
| | 20 | | /// <param name="localizationManager">The localization manager.</param> |
| | 21 | | /// <param name="mediaEncoder">The media encoder.</param> |
| | 22 | | /// <param name="fileSystem">The file system.</param> |
| | 23 | | /// <param name="namingOptions">The <see cref="NamingOptions"/> object containing FileExtensions, MediaDefaultFlags, |
| | 24 | | public LyricResolver( |
| | 25 | | ILogger<LyricResolver> logger, |
| | 26 | | ILocalizationManager localizationManager, |
| | 27 | | IMediaEncoder mediaEncoder, |
| | 28 | | IFileSystem fileSystem, |
| | 29 | | NamingOptions namingOptions) |
| 21 | 30 | | : base( |
| 21 | 31 | | logger, |
| 21 | 32 | | localizationManager, |
| 21 | 33 | | mediaEncoder, |
| 21 | 34 | | fileSystem, |
| 21 | 35 | | namingOptions, |
| 21 | 36 | | DlnaProfileType.Lyric) |
| | 37 | | { |
| 21 | 38 | | } |
| | 39 | | } |