Skip to content

Commit

Permalink
[script.service.hyperion] 20.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Lord-Grey committed May 4, 2024
1 parent 7ad8e23 commit cffa0fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion script.service.hyperion/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.service.hyperion" name="Hyperion Ambilight" version="20.0.1" provider-name="hyperion-project">
<addon id="script.service.hyperion" name="Hyperion Ambilight" version="20.0.2" provider-name="hyperion-project">
<requires>
<import addon="xbmc.addon" version="20.0.0"/>
<import addon="xbmc.python" version="3.0.1"/>
Expand All @@ -20,6 +20,8 @@
<source>https://github.com/hyperion-project/hyperion.kodi</source>
<license>MIT</license>
<news>
20.0.2
- Python lower than 3.10 compatibility
20.0.1
- Clean-ups
- Handle missing PIL library on Android
Expand Down
5 changes: 3 additions & 2 deletions script.service.hyperion/resources/lib/monitor.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -22,6 +22,7 @@
THE SOFTWARE.
"""
from typing import Callable
from typing import Tuple

import xbmc
from PIL import Image
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cffa0fc

Please sign in to comment.