PDA

View Full Version : [OS-mio+] [Multibootmgr.py] Bug Not current image Selected and some corrections



norhap
30-12-19, 20:50
If we do not have any images in the remaining slots, simply enter Multiboot Manager and press OK key we have BSOD:



< 9063.030> File "/usr/lib64/enigma2/python/Components/ActionMap.py", line 57, in action
< 9063.031> File "/usr/lib64/enigma2/python/Plugins/SystemPlugins/ViX/Multibootmgr.py", line 135, in erase
< 9063.031> if self.currentSelected[0][1] != "Queued":
< 9063.031> TypeError: 'NoneType' object has no attribute '__getitem__'
< 9063.031> [ePyObject] (CallObject(<bound method ActionMap.action of <Components.ActionMap.ActionMap instance at 0x7f8032d680>>,('OkCancelActions', 'ok')) failed)

This occurs because the current code has no return if there are no images in the slots.
solved:

Add this code line 135 Multibootmgr.py:


if self.currentSelected == None:
return

================================================== ================================================== ===================================

I will take advantage of this post to also publish the solution to a debug cleaning ... look here .....

https://github.com/norhap/vix-u5pvr/commit/fe093f70e04e73feed44eba37856d1097465db9f

================================================== ================================================== ====================================

more......

although right now with the current code works the numeric keys to choose audio track ....

there are actions not defined in keymap, with this we set volumeMute from the AudioSelection Screen.

have a look...
https://github.com/norhap/vix-u5pvr/commit/1e9cea3705d0aa4466775a897f43cd9edbc2452e

regards.
norhap.