Page 1 of 1

{hpi} reports "1080m"

Posted: 04 Nov 2020, 08:02
by jchh
Hi,

I have a TV series where some of the episodes report {hpi} as "1080p" as expected, but some report "1080m".

The code I am using is:

Code: Select all

{plex[3]}
{hd.matches(/SD/) ? " [SD]":""}
{vf.matches(/720p/) ? " [HD]":""}
{vf.matches(/1080p/) ? " [FHD]":""}
{vf.matches(hpi) ? "":" [$hpi]"}
The idea being that If it is standard 1920x1080, I get the [FHD] in the filename, but if it is non-standard, I get [FHD] [real height] - helps me know it has a non standard ratio.

This morning, I saw [FHD] [1080m] which threw me - I cannot find it anywhere on google.

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 08:49
by rednoah
What does {video.ScanType} say?

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 08:53
by jchh
Hi,

[MBAFF] for the ones that report 1080m
[Progressive] for the ones that report 1080p

They are all DVR'd through Plex/HDHomerun from the same channel (BBC HD), albeit on different days

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 08:58
by rednoah
{hpi} will give you the raw value: video height + lower-case first letter of video scantype


:idea: If the ScanType is MBAFF (no idea what that means) then the lower-case first letter of that is m.

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 09:53
by jchh
cheers.

Is it possible to get the video height alone?

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 10:11
by rednoah
{height} will give you the video height.

Re: {hpi} reports "1080m"

Posted: 04 Nov 2020, 10:35
by jchh
fantastic - thanks!