mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-12 21:26:10 +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')
|
videotrack['Video3DFormat'] = item.get('Video3DFormat')
|
||||||
if len(videotrack['aspectratio']) >= 3:
|
if len(videotrack['aspectratio']) >= 3:
|
||||||
try:
|
try:
|
||||||
aspectwidth, aspectheight = aspectratio.split(':')
|
aspectwidth, aspectheight = videotrack['aspectratio'].split(':')
|
||||||
videotrack['aspectfloat'] = float(aspectwidth) / float(aspectheight)
|
videotrack['aspectratio'] = round(float(aspectwidth) / float(aspectheight), 6)
|
||||||
except:
|
except:
|
||||||
videotrack['aspectfloat'] = 1.85
|
videotrack['aspectratio'] = 1.85
|
||||||
videotracks.append(videotrack)
|
videotracks.append(videotrack)
|
||||||
|
|
||||||
elif "Audio" in type:
|
elif "Audio" in type:
|
||||||
|
|
Loading…
Reference in a new issue