diff --git a/script.service.hyperion/addon.xml b/script.service.hyperion/addon.xml index 553fcc18f..debc50887 100644 --- a/script.service.hyperion/addon.xml +++ b/script.service.hyperion/addon.xml @@ -1,5 +1,5 @@ - + @@ -20,6 +20,8 @@ https://github.com/hyperion-project/hyperion.kodi MIT + 20.0.2 + - Python lower than 3.10 compatibility 20.0.1 - Clean-ups - Handle missing PIL library on Android diff --git a/script.service.hyperion/resources/lib/monitor.py b/script.service.hyperion/resources/lib/monitor.py index fe733b94a..b61c6ba22 100644 --- a/script.service.hyperion/resources/lib/monitor.py +++ b/script.service.hyperion/resources/lib/monitor.py @@ -1,7 +1,7 @@ """ Kodi video capturer for Hyperion. -Copyright (c) 2013-2023 Hyperion Team +Copyright (c) 2013-2024 Hyperion Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -22,6 +22,7 @@ THE SOFTWARE. """ from typing import Callable +from typing import Tuple import xbmc from PIL import Image @@ -114,7 +115,7 @@ def connect(self) -> None: self._hyperion = Hyperion(settings.address, settings.port) self._capture = xbmc.RenderCapture() - def get_capture_size(self) -> tuple[tuple[int, int], int]: + def get_capture_size(self) -> Tuple[Tuple[int, int], int]: width = self.settings.capture_width aspect_ratio = self._capture.getAspectRatio() height = int(width / aspect_ratio)