2020-05-14, 12:26
Hi. I am a Beginner in python. I try to learn from other scripts.
I have a movie title and the path from my DB. example "Starship Troopers".
I try:
titel='Starship Trooper'
url = 'c:\Movies\Starship_Trooper.mp4'
liz1=xbmcgui.ListItem(label=titel)
liz2 = xbmcgui.ListItem(path=url)
Now looks like
liz1 "<xbmcgui.ListItem object at 0x118C7Bc0>"
liz2 "<xbmcgui.ListItem object at 0x118C7Bcc>"
But the ListItem.DBID in my DB is 494 from Starship Troopers. strangely ??
So, I Dont understand. I have set the ListItem to 494?
I want to use ListItem.Trailer or ListItem.Plot? example xbmc.executebuiltin('PlayMedia($ESCINFO[ListItem.Trailer])')
I have see something like:
ListItem = liz
And then they can use it.
But 0x118C7Bc0.Plot can not run. I know.
How do I tell the script that ListItem relates to a Movie with label or path?
thank you
I have a movie title and the path from my DB. example "Starship Troopers".
I try:
titel='Starship Trooper'
url = 'c:\Movies\Starship_Trooper.mp4'
liz1=xbmcgui.ListItem(label=titel)
liz2 = xbmcgui.ListItem(path=url)
Now looks like
liz1 "<xbmcgui.ListItem object at 0x118C7Bc0>"
liz2 "<xbmcgui.ListItem object at 0x118C7Bcc>"
But the ListItem.DBID in my DB is 494 from Starship Troopers. strangely ??
So, I Dont understand. I have set the ListItem to 494?
I want to use ListItem.Trailer or ListItem.Plot? example xbmc.executebuiltin('PlayMedia($ESCINFO[ListItem.Trailer])')
I have see something like:
ListItem = liz
And then they can use it.
But 0x118C7Bc0.Plot can not run. I know.
How do I tell the script that ListItem relates to a Movie with label or path?
thank you