diff --git a/README.md b/README.md index f54121aa..eea60c9b 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ * Update ***[Mpv](https://mpv.io/)*** and **Sfvip Player** so you can enjoy their latest features. * Cache MAC acccounts all categories to access it faster. * Translated in all **Sfvip Player** languages. +* Fix XC accounts [series' episodes list](https://github.com/K4L4Uz/SFVIP-Player/issues/12). * Support an **external EPG**[^1]. [^1]: External EPG doesn't work with **local** m3u accounts. @@ -45,10 +46,10 @@ You'll find them in the app folder[^3]: [^3]:The app is installed by default in `%LocalAppData%\Programs\Sfvip All x64`, `%LocalAppData%\Programs\Sfvip All x86` or the installation directory you've specified during the installation. # Build -[![version](https://custom-icon-badges.demolab.com/badge/Build%201.4.12.46-informational?logo=github)](/build_config.py#L27) +[![version](https://custom-icon-badges.demolab.com/badge/Build%201.4.12.47-informational?logo=github)](/build_config.py#L27) [![Sloc](https://custom-icon-badges.demolab.com/badge/Sloc%208.5k-informational?logo=file-code)](https://api.codetabs.com/v1/loc/?github=sebdelsol/sfvip-all) [![Ruff](https://custom-icon-badges.demolab.com/badge/Ruff-informational?logo=ruff-color)](https://docs.astral.sh/ruff/) -[![Python](https://custom-icon-badges.demolab.com/badge/Python%203.11.8-linen?logo=python-color)](https://www.python.org/downloads/release/python-3118/) +[![Python](https://custom-icon-badges.demolab.com/badge/Python%203.11.9-linen?logo=python-color)](https://www.python.org/downloads/release/python-3119/) [![mitmproxy](https://custom-icon-badges.demolab.com/badge/Mitmproxy%2010.2.4-linen?logo=mitmproxy-black)](https://mitmproxy.org/) [![Nsis](https://custom-icon-badges.demolab.com/badge/Nsis%203.10-linen?logo=nsis-color)](https://nsis.sourceforge.io/Download) [![Nuitka](https://custom-icon-badges.demolab.com/badge/Nuitka%202.1.4-linen?logo=nuitka)](https://nuitka.net/) @@ -58,7 +59,7 @@ You'll find them in the app folder[^3]: * Check the [***build config***](build_config.py). ### Create the environments -You need [***Rust***](https://www.rust-lang.org/fr) and [***Python 3.11 x64***](https://www.python.org/ftp/python/3.11.8/python-3.11.8-amd64.exe) & [***x86***](https://www.python.org/ftp/python/3.11.8/python-3.11.8.exe): +You need [***Rust***](https://www.rust-lang.org/fr) and [***Python 3.11 x64***](https://www.python.org/ftp/python/3.11.9/python-3.11.9-amd64.exe) & [***x86***](https://www.python.org/ftp/python/3.11.9/python-3.11.9.exe): ```console rustup target add i686-pc-windows-msvc py -3.11-64 -m dev.create diff --git a/build/changelog.md b/build/changelog.md index 08589bd2..1e61ac1a 100644 --- a/build/changelog.md +++ b/build/changelog.md @@ -1,7 +1,11 @@ +## 1.4.12.47 +* Bump _Python_ to 3.11.9. +* Better placement of M3U accounts' EPG. + ## 1.4.12.46 * Bump _NSIS_ to 3.10. -* Fix position & size of M3U account EPG. -* Hit 'e' or 'E' for showing the M3U account EPG. +* Fix position & size of M3U accounts' EPG. +* Hit 'e' or 'E' for showing the M3U account' EPG. ## 1.4.12.45 * Bump _Nuitka_ to 2.1.4. diff --git a/build_config.py b/build_config.py index be954003..307941b8 100644 --- a/build_config.py +++ b/build_config.py @@ -24,7 +24,7 @@ class Build: main: ClassVar = "sfvip_all.py" company: ClassVar = "sebdelsol" name: ClassVar = "Sfvip All" - version: ClassVar = "1.4.12.46" + version: ClassVar = "1.4.12.47" dir: ClassVar = "build" enable_console: ClassVar = False logs_dir: ClassVar = "../logs" diff --git a/resources/README_template.md b/resources/README_template.md index e815750f..0840c580 100644 --- a/resources/README_template.md +++ b/resources/README_template.md @@ -5,6 +5,7 @@ * Update ***[Mpv](https://mpv.io/)*** and **Sfvip Player** so you can enjoy their latest features. * Cache MAC acccounts all categories to access it faster. * Translated in all **Sfvip Player** languages. +* Fix XC accounts [series' episodes list](https://github.com/K4L4Uz/SFVIP-Player/issues/12). * Support an **external EPG**[^1]. [^1]: External EPG doesn't work with **local** m3u accounts. diff --git a/src/sfvip/ui/hover.py b/src/sfvip/ui/hover.py index d69c12b9..24a50bef 100644 --- a/src/sfvip/ui/hover.py +++ b/src/sfvip/ui/hover.py @@ -23,6 +23,7 @@ class _HoverWindow(StickyWindow): fade_duration = 250 box_color = "#101010" radius = 7 + x_margin = 150 def __init__(self, get_widget: GetWidgetT, get_scrolling_widget: Optional[GetWidgetT] = None) -> None: super().__init__(self.offset, bg=self.bg) @@ -65,7 +66,10 @@ def update_and_show(self) -> None: def change_position(self, rect: Rect, forced: bool = False) -> None: if forced or self.is_shown(): x, y = self.offset.regular - size = max(10, rect.w - (x + self.radius) * 2), max(10, rect.h - (y + self.radius) * 2) + size = ( + max(10, rect.w - (x + self.radius + _HoverWindow.x_margin) * 2), + max(10, rect.h - (y + self.radius) * 2), + ) if forced or size != self._size: self.set_width(size[0]) self.box.update_widget(size[1]) @@ -145,7 +149,7 @@ def set_width(self, width: Optional[float]) -> None: class HoverChannelEpg(_HoverWindow): - offset = Offset(regular=(22, 0), center=(0, 0.75)) + offset = Offset(regular=(22, 0), center=(0, 0.85)) def __init__(self) -> None: self.programme = None