Posts: 3,532
Joined: Oct 2013
Reputation:
357
2019-08-20, 09:50
(This post was last modified: 2019-08-20, 10:37 by sualfred.)
Is there any way to get the listitem informations of the item where the context menu was opened?
In library views listitem.foo is returning everything as it should, but outside of library views - like for widgets - these values are empty and cleared/not available anymore as soon as I'm opening the context menu.
Edit:
I've also tried to get the values via sys.listitem, which should be a copy of xbmcgui.ListItem, but this leads to an exception: AttributeError: 'module' object has no attribute 'listitem'. I guess this is caused by a different instance.
Edit2:
Just to be sure: I do not want to add a context menu item. I just want the values of the listitems.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Posts: 239
Joined: Dec 2014
Reputation:
26
M89SE
Senior Member
Posts: 239
2019-08-21, 06:42
(This post was last modified: 2019-08-21, 06:46 by M89SE.)
Maybe possible to use the <defaultcontrol></defaultcontrol> tag in skin and use it together with the grouplist id?
EDIT:
Sorry I misunderstood your question this won't remember your last position.
Posts: 3,532
Joined: Oct 2013
Reputation:
357
2019-08-21, 23:55
(This post was last modified: 2019-08-21, 23:55 by sualfred.)
*sigh*
Crawled the board history a bit. And it really seems that you cannot get Kodi listitems by Python. I'm not the first one with that problem. I wish it would be possible to use xbmc.getInfoLabel() from the underlaying window of an active dialog.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Posts: 3,532
Joined: Oct 2013
Reputation:
357
Thanks.
The window ID was correct. I was testing it with a widget on the home screen.
Main: Lancool II Mesh - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 - EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB / Crucial P1 2TB / WD Blue 3D Nand 2TB
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage