mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-09-26 08:37:17 +00:00
update media source methods
This commit is contained in:
parent
3fe1c25c3e
commit
db315c4e32
31 changed files with 240 additions and 252 deletions
|
|
@ -29,9 +29,9 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
private readonly IChapterManager _chapterManager;
|
||||
private readonly ILibraryManager _libraryManager;
|
||||
|
||||
public EncodingManager(IFileSystem fileSystem,
|
||||
ILogger logger,
|
||||
IMediaEncoder encoder,
|
||||
public EncodingManager(IFileSystem fileSystem,
|
||||
ILogger logger,
|
||||
IMediaEncoder encoder,
|
||||
IChapterManager chapterManager, ILibraryManager libraryManager)
|
||||
{
|
||||
_fileSystem = fileSystem;
|
||||
|
|
@ -121,12 +121,16 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
List<string> playableStreamFileNames = null;
|
||||
if (video.VideoType == VideoType.BluRay || video.VideoType == VideoType.Dvd)
|
||||
{
|
||||
if (video.PlayableStreamFileNames.Count != 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
if (playableStreamFileNames == null)
|
||||
{
|
||||
playableStreamFileNames = new List<string>();
|
||||
}
|
||||
|
||||
try
|
||||
|
|
@ -136,7 +140,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
|
||||
var protocol = MediaProtocol.File;
|
||||
|
||||
var inputPath = MediaEncoderHelpers.GetInputArgument(_fileSystem, video.Path, protocol, null, video.PlayableStreamFileNames);
|
||||
var inputPath = MediaEncoderHelpers.GetInputArgument(_fileSystem, video.Path, protocol, null, playableStreamFileNames);
|
||||
|
||||
_fileSystem.CreateDirectory(_fileSystem.GetDirectoryName(path));
|
||||
|
||||
|
|
@ -151,7 +155,7 @@ namespace Emby.Server.Implementations.MediaEncoder
|
|||
}
|
||||
catch
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
chapter.ImagePath = path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue