mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Fix BD and DVD folder probing and playback
This commit is contained in:
parent
519709bf10
commit
ddfdec7f46
6 changed files with 148 additions and 126 deletions
|
|
@ -535,6 +535,16 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
{
|
||||
var mediaPath = state.MediaPath ?? string.Empty;
|
||||
|
||||
if (state.MediaSource.VideoType == VideoType.Dvd)
|
||||
{
|
||||
return _mediaEncoder.GetInputArgument(_mediaEncoder.GetPrimaryPlaylistVobFiles(state.MediaPath, null).ToList(), state.MediaSource);
|
||||
}
|
||||
|
||||
if (state.MediaSource.VideoType == VideoType.BluRay)
|
||||
{
|
||||
return _mediaEncoder.GetInputArgument(_mediaEncoder.GetPrimaryPlaylistM2TsFiles(state.MediaPath, null).ToList(), state.MediaSource);
|
||||
}
|
||||
|
||||
return _mediaEncoder.GetInputArgument(mediaPath, state.MediaSource);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue