mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Metadata aspect ratio
Take it into consideration
This commit is contained in:
parent
6faed80248
commit
ef927d6b3b
1 changed files with 4 additions and 1 deletions
|
@ -142,6 +142,9 @@ class API():
|
|||
videotrack['height'] = mediaStream.get('Height')
|
||||
videotrack['width'] = mediaStream.get('Width')
|
||||
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||
try:# Metadata aspect ratio
|
||||
videotrack['aspectratio'] = item['AspectRatio']
|
||||
except: # File aspect ratio
|
||||
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "0")
|
||||
if len(videotrack['aspectratio']) >= 3:
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue