mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-14 05:15:08 +00:00
Merge pull request #804 from fezster/hdr-metadata
Pass HDR library metadata to kodi to display logos
This commit is contained in:
commit
eec6f5da26
3 changed files with 17 additions and 3 deletions
|
@ -455,6 +455,7 @@ class Actions(object):
|
|||
|
||||
for track in obj['Streams']['video']:
|
||||
listitem.addStreamInfo('video', {
|
||||
'hdrtype': track['hdrtype'],
|
||||
'duration': obj['Runtime'],
|
||||
'aspect': track['aspect'],
|
||||
'codec': track['codec'],
|
||||
|
|
|
@ -258,10 +258,10 @@ add_bookmark_obj = ["{FileId}", "{PlayCount}", "{DatePlayed}", "{Resume}", "{Run
|
|||
add_streams_obj = ["{FileId}", "{Streams}", "{Runtime}"]
|
||||
add_stream_video = """
|
||||
INSERT INTO streamdetails(idFile, iStreamType, strVideoCodec, fVideoAspect, iVideoWidth,
|
||||
iVideoHeight, iVideoDuration, strStereoMode)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?)
|
||||
iVideoHeight, iVideoDuration, strStereoMode, strHdrType)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
"""
|
||||
add_stream_video_obj = ["{FileId}", 0, "{codec}", "{aspect}", "{width}", "{height}", "{Runtime}", "{3d}"]
|
||||
add_stream_video_obj = ["{FileId}", 0, "{codec}", "{aspect}", "{width}", "{height}", "{Runtime}", "{3d}", "{hdrtype}"]
|
||||
add_stream_audio = """
|
||||
INSERT INTO streamdetails(idFile, iStreamType, strAudioCodec, iAudioChannels, strAudioLanguage)
|
||||
VALUES (?, ?, ?, ?, ?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue