mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Fix for aspect ratio
Comparing to Kodi, seems to give the same results now.
This commit is contained in:
parent
929786302c
commit
cd618131e7
1 changed files with 3 additions and 3 deletions
|
@ -135,10 +135,10 @@ class API():
|
|||
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||
if len(videotrack['aspectratio']) >= 3:
|
||||
try:
|
||||
aspectwidth, aspectheight = aspectratio.split(':')
|
||||
videotrack['aspectfloat'] = float(aspectwidth) / float(aspectheight)
|
||||
aspectwidth, aspectheight = videotrack['aspectratio'].split(':')
|
||||
videotrack['aspectratio'] = round(float(aspectwidth) / float(aspectheight), 6)
|
||||
except:
|
||||
videotrack['aspectfloat'] = 1.85
|
||||
videotrack['aspectratio'] = 1.85
|
||||
videotracks.append(videotrack)
|
||||
|
||||
elif "Audio" in type:
|
||||
|
|
Loading…
Reference in a new issue