Skip to content

Commit

Permalink
v1.4.12.47
Browse files Browse the repository at this point in the history
  • Loading branch information
sebdelsol committed Apr 5, 2024
1 parent 79ff527 commit 4dbd949
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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/)
Expand All @@ -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
Expand Down
8 changes: 6 additions & 2 deletions build/changelog.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion build_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions resources/README_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 6 additions & 2 deletions src/sfvip/ui/hover.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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])
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4dbd949

Please sign in to comment.