mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-17 07:49:45 +02:00
Fixed: Detect 3D in some video files
This commit is contained in:
parent
294d95fae4
commit
182cda47b0
@ -70,7 +70,8 @@ const mediaInfoTokens = [
|
|||||||
{ token: '{MediaInfo VideoCodec}', example: 'x264' },
|
{ token: '{MediaInfo VideoCodec}', example: 'x264' },
|
||||||
{ token: '{MediaInfo VideoBitDepth}', example: '10' },
|
{ token: '{MediaInfo VideoBitDepth}', example: '10' },
|
||||||
{ token: '{MediaInfo VideoDynamicRange}', example: 'HDR' },
|
{ token: '{MediaInfo VideoDynamicRange}', example: 'HDR' },
|
||||||
{ token: '{MediaInfo VideoDynamicRangeType}', example: 'DV HDR10' }
|
{ token: '{MediaInfo VideoDynamicRangeType}', example: 'DV HDR10' },
|
||||||
|
{ token: '{MediaInfo 3D}', example: '3D' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const releaseGroupTokens = [
|
const releaseGroupTokens = [
|
||||||
|
@ -425,7 +425,6 @@ public void should_exclude_english_in_mediainfo_audio_language()
|
|||||||
.Should().Be("South.Park.H264.DTS.[EN+ES+IT]");
|
.Should().Be("South.Park.H264.DTS.[EN+ES+IT]");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Ignore("not currently supported")]
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_format_mediainfo_3d_properly()
|
public void should_format_mediainfo_3d_properly()
|
||||||
{
|
{
|
||||||
|
@ -75,7 +75,7 @@ public MediaInfoModel GetMediaInfo(string filename)
|
|||||||
mediaInfoModel.VideoCodecID = analysis.PrimaryVideoStream?.CodecTagString;
|
mediaInfoModel.VideoCodecID = analysis.PrimaryVideoStream?.CodecTagString;
|
||||||
mediaInfoModel.VideoProfile = analysis.PrimaryVideoStream?.Profile;
|
mediaInfoModel.VideoProfile = analysis.PrimaryVideoStream?.Profile;
|
||||||
mediaInfoModel.VideoBitrate = analysis.PrimaryVideoStream?.BitRate ?? 0;
|
mediaInfoModel.VideoBitrate = analysis.PrimaryVideoStream?.BitRate ?? 0;
|
||||||
mediaInfoModel.VideoMultiViewCount = 1;
|
mediaInfoModel.VideoMultiViewCount = analysis.PrimaryVideoStream?.Tags.ContainsKey("stereo_mode") ?? false ? 2 : 1;
|
||||||
mediaInfoModel.VideoBitDepth = GetPixelFormat(analysis.PrimaryVideoStream?.PixelFormat)?.Components.Min(x => x.BitDepth) ?? 8;
|
mediaInfoModel.VideoBitDepth = GetPixelFormat(analysis.PrimaryVideoStream?.PixelFormat)?.Components.Min(x => x.BitDepth) ?? 8;
|
||||||
mediaInfoModel.VideoColourPrimaries = analysis.PrimaryVideoStream?.ColorPrimaries;
|
mediaInfoModel.VideoColourPrimaries = analysis.PrimaryVideoStream?.ColorPrimaries;
|
||||||
mediaInfoModel.VideoTransferCharacteristics = analysis.PrimaryVideoStream?.ColorTransfer;
|
mediaInfoModel.VideoTransferCharacteristics = analysis.PrimaryVideoStream?.ColorTransfer;
|
||||||
|
Loading…
Reference in New Issue
Block a user