GetUnit

Function retrieve name of unit of Mediainfo field by text ID or index with given parameters.

GetUnit(FieldID [, Context])
GetUnit(FieldIndex, Context)
FieldIDText ID of library field.
FieldIndexIndex of library field.
ContextContext (General, Video, etc.). If omitted, General context will be used.

Remarks

Function return translated string, if transaltion for the language exists in the MediaInfo.lng file. If not found, non-translated string will be returned.