mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-19 14:46:13 +00:00
Pass HDR library metadata to kodi to display logos
Fix indentation error Update actions.py Update api.py
This commit is contained in:
parent
1caa69f831
commit
98a7ace541
3 changed files with 17 additions and 3 deletions
|
@ -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'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue