mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-31 09:38:25 +00:00
parent
df6f706c2f
commit
f5f75ed2e1
11 changed files with 171 additions and 51 deletions
|
|
@ -414,7 +414,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
/// <inheritdoc />
|
||||
public Task<MediaInfo> GetMediaInfo(MediaInfoRequest request, CancellationToken cancellationToken)
|
||||
{
|
||||
var extractChapters = request.MediaType == DlnaProfileType.Video && request.ExtractChapters;
|
||||
var extractChapters = request.ExtractChapters;
|
||||
var extraArgs = GetExtraArguments(request);
|
||||
|
||||
return GetMediaInfoInternal(
|
||||
|
|
|
|||
|
|
@ -194,6 +194,11 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
info.ProductionYear = info.PremiereDate.Value.Year;
|
||||
}
|
||||
|
||||
if (data.Chapters is not null)
|
||||
{
|
||||
info.Chapters = data.Chapters.Select(GetChapterInfo).ToArray();
|
||||
}
|
||||
|
||||
// Set mediaType-specific metadata
|
||||
if (isAudio)
|
||||
{
|
||||
|
|
@ -238,11 +243,6 @@ namespace MediaBrowser.MediaEncoding.Probing
|
|||
|
||||
FetchWtvInfo(info, data);
|
||||
|
||||
if (data.Chapters is not null)
|
||||
{
|
||||
info.Chapters = data.Chapters.Select(GetChapterInfo).ToArray();
|
||||
}
|
||||
|
||||
ExtractTimestamp(info);
|
||||
|
||||
if (tags.TryGetValue("stereo_mode", out var stereoMode) && string.Equals(stereoMode, "left_right", StringComparison.OrdinalIgnoreCase))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue