Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

Actor class used in combination with InfoTagVideo. More...

Classes

class  XBMCAddon::xbmc::Actor
 

Functions

 XBMCAddon::xbmc::Actor::Actor (...)
 

Function: xbmc.Actor([name, role, order, thumbnail])


Creates a single actor for the cast of a video item wrapped by InfoTagVideo.
 
 XBMCAddon::xbmc::Actor::getName ()
 

Function: getName()


Get the name of the actor.
 
 XBMCAddon::xbmc::Actor::getRole ()
 

Function: getRole()


Get the role of the actor in the specific video item.
 
 XBMCAddon::xbmc::Actor::getOrder ()
 

Function: getOrder()


Get the order of the actor in the cast of the specific video item.
 
 XBMCAddon::xbmc::Actor::getThumbnail ()
 

Function: getThumbnail()


Get the path / URL to the thumbnail of the actor.
 
 XBMCAddon::xbmc::Actor::setName (...)
 

Function: setName(name)


Set the name of the actor.
 
 XBMCAddon::xbmc::Actor::setRole (...)
 

Function: setRole(role)


Set the role of the actor in the specific video item.
 
 XBMCAddon::xbmc::Actor::setOrder (...)
 

Function: setOrder(order)


Set the order of the actor in the cast of the specific video item.
 
 XBMCAddon::xbmc::Actor::setThumbnail (...)
 

Function: setThumbnail(thumbnail)


Set the path / URL to the thumbnail of the actor.
 

Detailed Description

Actor class used in combination with InfoTagVideo.

Class: xbmc.Actor([name, role, order, thumbnail])

Represents a single actor in the cast of a video item wrapped by InfoTagVideo.


v20 Python API changes
New class added.

Example:

...
actor = xbmc.Actor('Sean Connery', 'James Bond', order=1)
...

Function Documentation

◆ Actor()

XBMCAddon::xbmc::Actor::Actor ( ...)

Function: xbmc.Actor([name, role, order, thumbnail])


Creates a single actor for the cast of a video item wrapped by InfoTagVideo.

Parameters
name[opt] string - Name of the actor.
role[opt] string - Role of the actor in the specific video item.
order[opt] integer - Order of the actor in the cast of the specific video item.
thumbnail[opt] string - Path / URL to the thumbnail of the actor.

v20 Python API changes
New function added.

Example:

...
actor = xbmc.Actor('Sean Connery', 'James Bond', order=1)
...

◆ getName()

XBMCAddon::xbmc::Actor::getName ( )

Function: getName()


Get the name of the actor.

Returns
[string] Name of the actor

v20 Python API changes
New function added.

◆ getOrder()

XBMCAddon::xbmc::Actor::getOrder ( )

Function: getOrder()


Get the order of the actor in the cast of the specific video item.

Returns
[integer] Order of the actor in the cast of the specific video item

v20 Python API changes
New function added.

◆ getRole()

XBMCAddon::xbmc::Actor::getRole ( )

Function: getRole()


Get the role of the actor in the specific video item.

Returns
[string] Role of the actor in the specific video item

v20 Python API changes
New function added.

◆ getThumbnail()

XBMCAddon::xbmc::Actor::getThumbnail ( )

Function: getThumbnail()


Get the path / URL to the thumbnail of the actor.

Returns
[string] Path / URL to the thumbnail of the actor

v20 Python API changes
New function added.

◆ setName()

XBMCAddon::xbmc::Actor::setName ( ...)

Function: setName(name)


Set the name of the actor.

Parameters
namestring - Name of the actor.

v20 Python API changes
New function added.

◆ setOrder()

XBMCAddon::xbmc::Actor::setOrder ( ...)

Function: setOrder(order)


Set the order of the actor in the cast of the specific video item.

Parameters
orderinteger - Order of the actor in the cast of the specific video item.

v20 Python API changes
New function added.

◆ setRole()

XBMCAddon::xbmc::Actor::setRole ( ...)

Function: setRole(role)


Set the role of the actor in the specific video item.

Parameters
rolestring - Role of the actor in the specific video item.

v20 Python API changes
New function added.

◆ setThumbnail()

XBMCAddon::xbmc::Actor::setThumbnail ( ...)

Function: setThumbnail(thumbnail)


Set the path / URL to the thumbnail of the actor.

Parameters
thumbnailstring - Path / URL to the thumbnail of the actor.

v20 Python API changes
New function added.