Kodi Community Forum
Trying to set Info for plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Trying to set Info for plugin (/showthread.php?tid=118380)



Trying to set Info for plugin - Martijn - 2012-01-01

I'm trying to add some extra info to listitem that was missing however i don't get correct visible ListItem

Example code:
PHP Code:
dirItem.listitem.setInfo"video", { "VideoCodec""AVC1""AudioCodec""AAC""VideoResolution""1080""Title"video"title" ], "Overlay"overlay"Size"video"size" ], "Year"year"Plot"video"plot" ], "PlotOutline"video"plot" ], "MPAA"video"mpaa" ], "Genre"video"genre" ], "Studio"video"studio" ], "Director"video"director" ], "Duration"video"duration" ], "Cast"video"cast" ]} ) 

For now i'm trying to set
PHP Code:
VideoCodec": "AVC1", "AudioCodec": "AAC", "VideoResolution": "1080"
VideoCodec"
"avc11""AudioCodec""aac""VideoResolution""1080" 
Hardcoded to try it out but no luck. Others do show up fine even when replace with text like
PHP Code:
"Title""Test test test"