mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06: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,7 +142,10 @@ class API():
|
|||
videotrack['height'] = mediaStream.get('Height')
|
||||
videotrack['width'] = mediaStream.get('Width')
|
||||
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "0")
|
||||
try:# Metadata aspect ratio
|
||||
videotrack['aspectratio'] = item['AspectRatio']
|
||||
except: # File aspect ratio
|
||||
videotrack['aspectratio'] = mediaStream.get('AspectRatio', "0")
|
||||
if len(videotrack['aspectratio']) >= 3:
|
||||
try:
|
||||
aspectwidth, aspectheight = videotrack['aspectratio'].split(':')
|
||||
|
|
Loading…
Reference in a new issue