Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[script.service.hyperion@nexus] 20.0.2 #2617

Merged
merged 1 commit into from
Jul 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading