Pass HDR library metadata to kodi to display logos

Fix indentation error

Update actions.py

Update api.py
This commit is contained in:
fezster 2024-01-04 16:39:51 +00:00
parent 1caa69f831
commit 98a7ace541
3 changed files with 17 additions and 3 deletions

View file

@ -73,7 +73,20 @@ class API(object):
for track in tracks:
if "DvProfile" in track:
track['hdrtype'] = "dolbyvision"
elif track['VideoRangeType'] in ["HDR10", "HDR10Plus"]:
track['hdrtype'] = "hdr10"
elif "HLG" in track['VideoRangeType']:
track['hdrtype'] = "hlg"
elif track['VideoRangeType'] in ["SDR", "Unknown"]:
track['hdrtype'] = ""
track.update({
'hdrtype': track.get('hdrtype', "").lower(),
'codec': track.get('Codec', "").lower(),
'profile': track.get('Profile', "").lower(),
'height': track.get('Height'),