Kodi Development  20.0
for Binary and Script based Add-Ons

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)
...

Modules

 VideoStreamDetail
 Video stream details class used in combination with InfoTagVideo.
 

Function Documentation

◆ 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()

getName ( )

Function: getName()


Get the name of the actor.

Returns
[string] Name of the actor

v20 Python API changes:
New function added.

◆ getRole()

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.

◆ getOrder()

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.

◆ getThumbnail()

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()

setName (   ...)

Function: setName(name)


Set the name of the actor.

Parameters
namestring - Name of the actor.

v20 Python API changes:
New function added.

◆ setRole()

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.

◆ setOrder()

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.

◆ setThumbnail()

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.