Merged
merge requests for PLi's git
Re: merge requests for PLi's git #1621
Re: merge requests for PLi's git #1622
Posted 16 July 2023 - 08:36
Please apply
[werbezapper] update - thanks @Stan
[epgimport] add option "Execute shell command before import EPG"
GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K
Re: merge requests for PLi's git #1623
Re: merge requests for PLi's git #1624
Re: merge requests for PLi's git #1625
Posted 22 July 2023 - 07:27
Division error.
diff --git a/filebrowser/src/ui.py b/filebrowser/src/ui.py index 5999a4de..265e0429 100644 --- a/filebrowser/src/ui.py +++ b/filebrowser/src/ui.py @@ -438,10 +438,10 @@ class FilebrowserScreenInfo(Screen): x, y = self.getLineSize() wsize = (x + 2 * mx, 4 * y) self.instance.resize(eSize(*wsize)) - self["path"].instance.move(ePoint(mx, y - y / 4)) - self["size"].instance.move(ePoint(mx, 2 * y + y / 4)) - wx = (w - wsize[0]) / 2 - wy = (h - wsize[1]) / 2 + self["path"].instance.move(ePoint(mx, int(y - y / 4))) + self["size"].instance.move(ePoint(mx, int(2 * y + y / 4))) + wx = int((w - wsize[0]) / 2) + wy = int((h - wsize[1]) / 2) self.instance.move(ePoint(wx, wy)) def getLineSize(self):
Re: merge requests for PLi's git #1626
Re: merge requests for PLi's git #1627
Re: merge requests for PLi's git #1628
Posted 22 July 2023 - 12:29
Edited by littlesat, 22 July 2023 - 12:33.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: merge requests for PLi's git #1629
Posted 23 July 2023 - 21:02
That is what Huevos says? Fix it in python, as you can't pass a float to ePoint?
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: merge requests for PLi's git #1630
Re: merge requests for PLi's git #1631
Posted 24 July 2023 - 14:43
Oh. I didn't.
I've pusht a fix using integer division.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: merge requests for PLi's git #1632
Re: merge requests for PLi's git #1633
Posted 24 July 2023 - 15:08
Oeps! Looks like you missed two lines
https://github.com/O...68fb5aa36716355
Lines 441 and 442 do still miss the integer division '//'....
Edited by littlesat, 24 July 2023 - 15:08.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: merge requests for PLi's git #1634
Posted 24 July 2023 - 16:35
the integer division '//'....
'//' is not integer division, it is floor division.
>>> 4.1 / 2 2.05 >>> >>> 4.1 // 2 2.0 >>>
If all your inputs are integers the return value will be an integer too, otherwise a floored float.
If you are not sure what your inputs are you need to use int().
Edited by Huevos, 24 July 2023 - 16:38.
Re: merge requests for PLi's git #1635
Posted 24 July 2023 - 19:03
How did python2 do implicit conversion from float, internally?
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: merge requests for PLi's git #1636
Posted 24 July 2023 - 19:07
'//' is not integer division, it is floor division.
integer devision is the same as floor devision, both don't round but truncate.
And:
Python 2.7.18 (default, May 25 2023, 00:00:00) [GCC 13.1.1 20230511 (Red Hat 13.1.1-2)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> int(5/2) 2
so in these cases using // is fine.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: merge requests for PLi's git #1637
Posted 24 July 2023 - 19:08
Oeps! Looks like you missed two lines
https://github.com/O...68fb5aa36716355
Lines 441 and 442 do still miss the integer division '//'....
I didn't check the entire file, I just addressed the issue that was posted by @tension.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.
Re: merge requests for PLi's git #1638
Posted 24 July 2023 - 21:26
Edited by littlesat, 24 July 2023 - 21:28.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: merge requests for PLi's git #1639
Posted 25 July 2023 - 08:26
Re: merge requests for PLi's git #1640
45 user(s) are reading this topic
0 members, 45 guests, 0 anonymous users