infolabels on video files
#1
Hi everyone,

I am having a small problem. I am a newbie, developing my first addon to parse a website with foreign TV shows, and this requires me to set up information such as:

Title, Country, Rating, Year, Genre, Label2, Plot
For some very odd reason, only Genre and Plot are working for me.
But I really need it to show Country (it's like the most important information), in the description (when I press "i" on the listing). How could I do this?
Here is my code. What am I doing wrong?
So, I do:
Code:
liz=xbmcgui.ListItem(name, iconImage="DefaultFolder.png", thumbnailImage=iconimage)
    liz.setInfo( type="Video", infoLabels={ "Title": name,
                                                            "Country" : "Japan",
                                                            "Rating" : "9.25",
                                                            "Year" : "2005"
                                                            "Genre" : "Comedy",
                                                            "label2" : "Japan"
                                                            "Plot" : "A lighthearted comedy about lonely adults in Tokyo"
                                                            "} )
    ok=xbmcplugin.addDirectoryItem(handle=int(sys.argv[1]),url=u,listitem=liz,isFolder=True)



Also, if possible -- (please help me, please tell me how can I possibly do this!) In the directory listings of the shows, I want a title and a corresponding country to be displayed neatly in two columns like so:

Code:
(example)

Tokyo lovers             Japan
Seoul fighters           Korea
Lonely in Beijing        China
Moscow Nights            Russia
Tonight in Taipei        Taiwan

Thank you very much!!!!!
Reply
#2
You can only set the labels, it's up to the skin to display them.

For the two-column listitems, I believe the best you can do is to pad the first part with spaces
Reply
#3
set genre to the country and either add the sort method for genre. or set label2mask="%G"
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
infolabels on video files0