how getInfo to a ListItem?
#1
I need to retrieve the data dictionary after setting them in the ListItem.setInfo

python:

list_item = xbmcgui.ListItem(label=label, offscreen=True)
list_item.setInfo('video', info)

does not exist getInfo?
is there a way to read the Info data?
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
#2
Mediatype has to be set to get the listitems filled in the gui (video,movie,tvshow,season, or episode) or what do you mean? 
-> https://codedocs.xyz/xbmc/xbmc/class_x_b...video.html
-> https://codedocs.xyz/xbmc/xbmc/group__py...4c0af53c9d
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
Reply
#3
(2019-10-15, 07:38)sualfred Wrote: Mediatype has to be set to get the listitems filled in the gui (video,movie,tvshow,season, or episode) or what do you mean? 
-> https://codedocs.xyz/xbmc/xbmc/class_x_b...video.html
-> https://codedocs.xyz/xbmc/xbmc/group__py...4c0af53c9d

yes the getVideoInfoTag working but this return an object that that we need to recall each get parameter to get the information,

in setInfo you pass a dictionary of values (infolabels):

Code:
Function: setInfo(type, infoLabels)

i need to get that dictionary back
to be able to modify it easily without recalling every single parameter
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply
#4
That's not possible. 
Just write a small function that asks the getVideoInfoTag object for all values and generate a new dict out of it.
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
Reply
#5
(2019-10-15, 08:59)sualfred Wrote: That's not possible. 
Just write a small function that asks the getVideoInfoTag object for all values and generate a new dict out of it.

it is not very practical because in this way in case of changes to the tag properties it needs maintenance
i'll have to find another solution
Dev-Maintainer of InputStream Adaptive add-on, Netflix add-on ▫ Skills Python, C#, VB.NET and a bit of C++
Reply

Logout Mark Read Team Forum Stats Members Help
how getInfo to a ListItem?0