File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
- <addon id =" script.service.hyperion" name =" Hyperion Ambilight" version =" 20.0.1 " provider-name =" hyperion-project" >
2
+ <addon id =" script.service.hyperion" name =" Hyperion Ambilight" version =" 20.0.2 " provider-name =" hyperion-project" >
3
3
<requires >
4
4
<import addon =" xbmc.addon" version =" 20.0.0" />
5
5
<import addon =" xbmc.python" version =" 3.0.1" />
20
20
<source >https://github.com/hyperion-project/hyperion.kodi</source >
21
21
<license >MIT</license >
22
22
<news >
23
+ 20.0.2
24
+ - Python lower than 3.10 compatibility
23
25
20.0.1
24
26
- Clean-ups
25
27
- Handle missing PIL library on Android
Original file line number Diff line number Diff line change 1
1
"""
2
2
Kodi video capturer for Hyperion.
3
3
4
- Copyright (c) 2013-2023 Hyperion Team
4
+ Copyright (c) 2013-2024 Hyperion Team
5
5
6
6
Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
of this software and associated documentation files (the "Software"), to deal
22
22
THE SOFTWARE.
23
23
"""
24
24
from typing import Callable
25
+ from typing import Tuple
25
26
26
27
import xbmc
27
28
from PIL import Image
@@ -114,7 +115,7 @@ def connect(self) -> None:
114
115
self ._hyperion = Hyperion (settings .address , settings .port )
115
116
self ._capture = xbmc .RenderCapture ()
116
117
117
- def get_capture_size (self ) -> tuple [ tuple [int , int ], int ]:
118
+ def get_capture_size (self ) -> Tuple [ Tuple [int , int ], int ]:
118
119
width = self .settings .capture_width
119
120
aspect_ratio = self ._capture .getAspectRatio ()
120
121
height = int (width / aspect_ratio )
You can’t perform that action at this time.
0 commit comments