{hpi} reports "1080m"

All your suggestions, requests and ideas for future development
Post Reply
jchh
Posts: 45
Joined: 02 Nov 2020, 15:13

{hpi} reports "1080m"

Post 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.
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {hpi} reports "1080m"

Post by rednoah »

What does {video.ScanType} say?
:idea: Please read the FAQ and How to Request Help.
jchh
Posts: 45
Joined: 02 Nov 2020, 15:13

Re: {hpi} reports "1080m"

Post 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
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {hpi} reports "1080m"

Post 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.
:idea: Please read the FAQ and How to Request Help.
jchh
Posts: 45
Joined: 02 Nov 2020, 15:13

Re: {hpi} reports "1080m"

Post by jchh »

cheers.

Is it possible to get the video height alone?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: {hpi} reports "1080m"

Post by rednoah »

{height} will give you the video height.
:idea: Please read the FAQ and How to Request Help.
jchh
Posts: 45
Joined: 02 Nov 2020, 15:13

Re: {hpi} reports "1080m"

Post by jchh »

fantastic - thanks!
Post Reply