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

Kodi's music info tag class. More...

Classes

class  XBMCAddon::xbmc::InfoTagMusic
 

Functions

 XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic (const MUSIC_INFO::CMusicInfoTag *tag)
 
 XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic (MUSIC_INFO::CMusicInfoTag *tag, bool offscreen=false)
 
 XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic (...)
 

Function: xbmc.InfoTagMusic([offscreen])


Create a music info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::~InfoTagMusic () override
 
 XBMCAddon::xbmc::InfoTagMusic::getDbId ()
 

Function: getDbId()


Get identification number of tag in database.
 
 XBMCAddon::xbmc::InfoTagMusic::getURL ()
 

Function: getURL()


Returns url of source as string from music info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getTitle ()
 

Function: getTitle()


Returns the title from music as string on info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getMediaType ()
 

Function: getMediaType()


Get the media type of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::getArtist ()
 

Function: getArtist()


Returns the artist from music as string if present.
 
 XBMCAddon::xbmc::InfoTagMusic::getAlbum ()
 

Function: getAlbum()


Returns the album from music tag as string if present.
 
 XBMCAddon::xbmc::InfoTagMusic::getAlbumArtist ()
 

Function: getAlbumArtist()


Returns the album artist from music tag as string if present.
 
 XBMCAddon::xbmc::InfoTagMusic::getGenre ()
 

Function: getGenre()


Returns the genre name from music tag as string if present.
 
 XBMCAddon::xbmc::InfoTagMusic::getGenres ()
 

Function: getGenres()


Returns the list of genres from music tag if present.
 
 XBMCAddon::xbmc::InfoTagMusic::getDuration ()
 

Function: getDuration()


Returns the duration of music as integer from info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getYear ()
 

Function: getYear()


Returns the year of music as integer from info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getRating ()
 

Function: getRating()


Returns the scraped rating as integer.
 
 XBMCAddon::xbmc::InfoTagMusic::getUserRating ()
 

Function: getUserRating()


Returns the user rating as integer (-1 if not existing)
 
 XBMCAddon::xbmc::InfoTagMusic::getTrack ()
 

Function: getTrack()


Returns the track number (if present) from music info tag as integer.
 
 XBMCAddon::xbmc::InfoTagMusic::getDisc ()
 

Function: getDisc()


Returns the disk number (if present) from music info tag as integer.
 
 XBMCAddon::xbmc::InfoTagMusic::getReleaseDate ()
 

Function: getReleaseDate()


Returns the release date as string from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getListeners ()
 

Function: getListeners()


Returns the listeners as integer from music info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getPlayCount ()
 

Function: getPlayCount()


Returns the number of carried out playbacks.
 
 XBMCAddon::xbmc::InfoTagMusic::getLastPlayed ()
 

Function: getLastPlayed()


Returns last played time as string from music info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getLastPlayedAsW3C ()
 

Function: getLastPlayedAsW3C()


Returns last played time as string in W3C format (YYYY-MM-DDThh:mm:ssTZD).
 
 XBMCAddon::xbmc::InfoTagMusic::getComment ()
 

Function: getComment()


Returns comment as string from music info tag.
 
 XBMCAddon::xbmc::InfoTagMusic::getLyrics ()
 

Function: getLyrics()


Returns a string from lyrics.
 
 XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzTrackID ()
 

Function: getMusicBrainzTrackID()


Returns the MusicBrainz Recording ID from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzArtistID ()
 

Function: getMusicBrainzArtistID()


Returns the MusicBrainz Artist IDs from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzAlbumID ()
 

Function: getMusicBrainzAlbumID()


Returns the MusicBrainz Release ID from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzReleaseGroupID ()
 

Function: getMusicBrainzReleaseGroupID()


Returns the MusicBrainz Release Group ID from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzAlbumArtistID ()
 

Function: getMusicBrainzAlbumArtistID()


Returns the MusicBrainz Release Artist IDs from music info tag (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::getSongVideoURL ()
 

Function: getSongVideoURL()


Returns the URL to a video of the song from the music tag as a string (if present).
 
 XBMCAddon::xbmc::InfoTagMusic::setDbId (...)
 

Function: setDbId(dbId, type)


Set the database identifier of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setURL (...)
 

Function: setURL(url)


Set the URL of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setMediaType (...)
 

Function: setMediaType(mediaType)


Set the media type of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setTrack (...)
 

Function: setTrack(track)


Set the track number of the song.
 
 XBMCAddon::xbmc::InfoTagMusic::setDisc (...)
 

Function: setDisc(disc)


Set the disc number of the song.
 
 XBMCAddon::xbmc::InfoTagMusic::setDuration (...)
 

Function: setDuration(duration)


Set the duration of the song.
 
 XBMCAddon::xbmc::InfoTagMusic::setYear (...)
 

Function: setYear(year)


Set the year of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setReleaseDate (...)
 

Function: setReleaseDate(releaseDate)


Set the release date of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setListeners (...)
 

Function: setListeners(listeners)


Set the number of listeners of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setPlayCount (...)
 

Function: setPlayCount(playcount)


Set the playcount of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setGenres (...)
 

Function: setGenres(genres)


Set the genres of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setAlbum (...)
 

Function: setAlbum(album)


Set the album of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setArtist (...)
 

Function: setArtist(artist)


Set the artist(s) of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setAlbumArtist (...)
 

Function: setAlbumArtist(albumArtist)


Set the album artist(s) of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setTitle (...)
 

Function: setTitle(title)


Set the title of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setRating (...)
 

Function: setRating(rating)


Set the rating of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setUserRating (...)
 

Function: setUserRating(userrating)


Set the user rating of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setLyrics (...)
 

Function: setLyrics(lyrics)


Set the lyrics of the song.
 
 XBMCAddon::xbmc::InfoTagMusic::setLastPlayed (...)
 

Function: setLastPlayed(lastPlayed)


Set the last played date of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzTrackID (...)
 

Function: setMusicBrainzTrackID(musicBrainzTrackID)


Set the MusicBrainz track ID of the song.
 
 XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzArtistID (...)
 

Function: setMusicBrainzArtistID(musicBrainzArtistID)


Set the MusicBrainz artist IDs of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumID (...)
 

Function: setMusicBrainzAlbumID(musicBrainzAlbumID)


Set the MusicBrainz album ID of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzReleaseGroupID (...)
 

Function: setMusicBrainzReleaseGroupID(musicBrainzReleaseGroupID)


Set the MusicBrainz release group ID of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumArtistID (...)
 

Function: setMusicBrainzAlbumArtistID(musicBrainzAlbumArtistID)


Set the MusicBrainz album artist IDs of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setComment (...)
 

Function: setComment(comment)


Set the comment of the music item.
 
 XBMCAddon::xbmc::InfoTagMusic::setSongVideoURL (...)
 

Function: setSongVideoURL(songVideoURL)


Set the URL of the song to point to a video.
 
static void XBMCAddon::xbmc::InfoTagMusic::setDbIdRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int dbId, const String &type)
 
static void XBMCAddon::xbmc::InfoTagMusic::setURLRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &url)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMediaTypeRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &mediaType)
 
static void XBMCAddon::xbmc::InfoTagMusic::setTrackRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int track)
 
static void XBMCAddon::xbmc::InfoTagMusic::setDiscRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int disc)
 
static void XBMCAddon::xbmc::InfoTagMusic::setDurationRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int duration)
 
static void XBMCAddon::xbmc::InfoTagMusic::setYearRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int year)
 
static void XBMCAddon::xbmc::InfoTagMusic::setReleaseDateRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &releaseDate)
 
static void XBMCAddon::xbmc::InfoTagMusic::setListenersRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int listeners)
 
static void XBMCAddon::xbmc::InfoTagMusic::setPlayCountRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int playcount)
 
static void XBMCAddon::xbmc::InfoTagMusic::setGenresRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &genres)
 
static void XBMCAddon::xbmc::InfoTagMusic::setAlbumRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &album)
 
static void XBMCAddon::xbmc::InfoTagMusic::setArtistRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &artist)
 
static void XBMCAddon::xbmc::InfoTagMusic::setAlbumArtistRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &albumArtist)
 
static void XBMCAddon::xbmc::InfoTagMusic::setTitleRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &title)
 
static void XBMCAddon::xbmc::InfoTagMusic::setRatingRaw (MUSIC_INFO::CMusicInfoTag *infoTag, float rating)
 
static void XBMCAddon::xbmc::InfoTagMusic::setUserRatingRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int userrating)
 
static void XBMCAddon::xbmc::InfoTagMusic::setLyricsRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &lyrics)
 
static void XBMCAddon::xbmc::InfoTagMusic::setLastPlayedRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &lastPlayed)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzTrackIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzTrackID)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzArtistIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &musicBrainzArtistID)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzAlbumID)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzReleaseGroupIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzReleaseGroupID)
 
static void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumArtistIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &musicBrainzAlbumArtistID)
 
static void XBMCAddon::xbmc::InfoTagMusic::setCommentRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &comment)
 
static void XBMCAddon::xbmc::InfoTagMusic::setSongVideoURLRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &songVideoURL)
 

Detailed Description

Kodi's music info tag class.

Class: xbmc.InfoTagMusic([offscreen])

Access and / or modify the music metadata of a ListItem.


Example:

...
tag = xbmc.Player().getMusicInfoTag()
title = tag.getTitle()
url = tag.getURL()
...

Function Documentation

◆ getAlbum()

String XBMCAddon::xbmc::InfoTagMusic::getAlbum ( )

Function: getAlbum()


Returns the album from music tag as string if present.

Returns
[string] Music album name

◆ getAlbumArtist()

String XBMCAddon::xbmc::InfoTagMusic::getAlbumArtist ( )

Function: getAlbumArtist()


Returns the album artist from music tag as string if present.

Returns
[string] Music album artist name

◆ getArtist()

String XBMCAddon::xbmc::InfoTagMusic::getArtist ( )

Function: getArtist()


Returns the artist from music as string if present.

Returns
[string] Music artist

◆ getComment()

String XBMCAddon::xbmc::InfoTagMusic::getComment ( )

Function: getComment()


Returns comment as string from music info tag.

Returns
[string] Comment on tag

◆ getDbId()

int XBMCAddon::xbmc::InfoTagMusic::getDbId ( )

Function: getDbId()


Get identification number of tag in database.

Returns
[integer] database id.

v18 Python API changes
New function added.

◆ getDisc()

int XBMCAddon::xbmc::InfoTagMusic::getDisc ( )

Function: getDisc()


Returns the disk number (if present) from music info tag as integer.

Returns
[integer] Disc number

◆ getDuration()

int XBMCAddon::xbmc::InfoTagMusic::getDuration ( )

Function: getDuration()


Returns the duration of music as integer from info tag.

Returns
[integer] Duration

◆ getGenre()

String XBMCAddon::xbmc::InfoTagMusic::getGenre ( )

Function: getGenre()


Returns the genre name from music tag as string if present.

Returns
[string] Genre name

v20 Python API changes
Deprecated. Use getGenres() instead.

◆ getGenres()

std::vector< String > XBMCAddon::xbmc::InfoTagMusic::getGenres ( )

Function: getGenres()


Returns the list of genres from music tag if present.

Returns
[list] List of genres

v20 Python API changes
New function added.

◆ getLastPlayed()

String XBMCAddon::xbmc::InfoTagMusic::getLastPlayed ( )

Function: getLastPlayed()


Returns last played time as string from music info tag.

Returns
[string] Last played date / time on tag

v20 Python API changes
Deprecated. Use getLastPlayedAsW3C() instead.

◆ getLastPlayedAsW3C()

String XBMCAddon::xbmc::InfoTagMusic::getLastPlayedAsW3C ( )

Function: getLastPlayedAsW3C()


Returns last played time as string in W3C format (YYYY-MM-DDThh:mm:ssTZD).

Returns
[string] Last played datetime (W3C)

v20 Python API changes
New function added.

◆ getListeners()

int XBMCAddon::xbmc::InfoTagMusic::getListeners ( )

Function: getListeners()


Returns the listeners as integer from music info tag.

Returns
[integer] Listeners

◆ getLyrics()

String XBMCAddon::xbmc::InfoTagMusic::getLyrics ( )

Function: getLyrics()


Returns a string from lyrics.

Returns
[string] Lyrics on tag

◆ getMediaType()

String XBMCAddon::xbmc::InfoTagMusic::getMediaType ( )

Function: getMediaType()


Get the media type of the music item.

Returns
[string] media type

Available strings about media type for music:

String Description
artist If it is defined as an artist
album If it is defined as an album
song If it is defined as a song

v18 Python API changes
New function added.

◆ getMusicBrainzAlbumArtistID()

std::vector< String > XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzAlbumArtistID ( )

Function: getMusicBrainzAlbumArtistID()


Returns the MusicBrainz Release Artist IDs from music info tag (if present).

Returns
[list] MusicBrainz Release Artist IDs

v19 Python API changes
New function added.

◆ getMusicBrainzAlbumID()

String XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzAlbumID ( )

Function: getMusicBrainzAlbumID()


Returns the MusicBrainz Release ID from music info tag (if present).

Returns
[string] MusicBrainz Release ID

v19 Python API changes
New function added.

◆ getMusicBrainzArtistID()

std::vector< String > XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzArtistID ( )

Function: getMusicBrainzArtistID()


Returns the MusicBrainz Artist IDs from music info tag (if present).

Returns
[list] MusicBrainz Artist IDs

v19 Python API changes
New function added.

◆ getMusicBrainzReleaseGroupID()

String XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzReleaseGroupID ( )

Function: getMusicBrainzReleaseGroupID()


Returns the MusicBrainz Release Group ID from music info tag (if present).

Returns
[string] MusicBrainz Release Group ID

v19 Python API changes
New function added.

◆ getMusicBrainzTrackID()

String XBMCAddon::xbmc::InfoTagMusic::getMusicBrainzTrackID ( )

Function: getMusicBrainzTrackID()


Returns the MusicBrainz Recording ID from music info tag (if present).

Returns
[string] MusicBrainz Recording ID

v19 Python API changes
New function added.

◆ getPlayCount()

int XBMCAddon::xbmc::InfoTagMusic::getPlayCount ( )

Function: getPlayCount()


Returns the number of carried out playbacks.

Returns
[integer] Playback count

◆ getRating()

int XBMCAddon::xbmc::InfoTagMusic::getRating ( )

Function: getRating()


Returns the scraped rating as integer.

Returns
[integer] Rating

◆ getReleaseDate()

String XBMCAddon::xbmc::InfoTagMusic::getReleaseDate ( )

Function: getReleaseDate()


Returns the release date as string from music info tag (if present).

Returns
[string] Release date

◆ getSongVideoURL()

String XBMCAddon::xbmc::InfoTagMusic::getSongVideoURL ( )

Function: getSongVideoURL()


Returns the URL to a video of the song from the music tag as a string (if present).

Returns
[string] URL to a video of the song.

v21 Python API changes
New function added.

◆ getTitle()

String XBMCAddon::xbmc::InfoTagMusic::getTitle ( )

Function: getTitle()


Returns the title from music as string on info tag.

Returns
[string] Music title

◆ getTrack()

int XBMCAddon::xbmc::InfoTagMusic::getTrack ( )

Function: getTrack()


Returns the track number (if present) from music info tag as integer.

Returns
[integer] Track number

◆ getURL()

String XBMCAddon::xbmc::InfoTagMusic::getURL ( )

Function: getURL()


Returns url of source as string from music info tag.

Returns
[string] Url of source

◆ getUserRating()

int XBMCAddon::xbmc::InfoTagMusic::getUserRating ( )

Function: getUserRating()


Returns the user rating as integer (-1 if not existing)

Returns
[integer] User rating

◆ getYear()

int XBMCAddon::xbmc::InfoTagMusic::getYear ( )

Function: getYear()


Returns the year of music as integer from info tag.

Returns
[integer] Year

v20 Python API changes
New function added.

◆ InfoTagMusic() [1/3]

XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic ( ...)

Function: xbmc.InfoTagMusic([offscreen])


Create a music info tag.

Parameters
offscreen[opt] bool (default False) - if GUI based locks should be avoided. Most of the times listitems are created offscreen and added later to a container for display (e.g. plugins) or they are not even displayed (e.g. python scrapers). In such cases, there is no need to lock the GUI when creating the items (increasing your addon performance). Note however, that if you are creating listitems and managing the container itself (e.g using WindowXML or WindowXMLDialog classes) subsquent modifications to the item will require locking. Thus, in such cases, use the default value (False).

v20 Python API changes
Added offscreen argument.

Example:

...
musicinfo = xbmc.InfoTagMusic(offscreen=False)
...

◆ InfoTagMusic() [2/3]

XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic ( const MUSIC_INFO::CMusicInfoTag * tag)
explicit

◆ InfoTagMusic() [3/3]

XBMCAddon::xbmc::InfoTagMusic::InfoTagMusic ( MUSIC_INFO::CMusicInfoTag * tag,
bool offscreen = false )
explicit

◆ setAlbum()

void XBMCAddon::xbmc::InfoTagMusic::setAlbum ( ...)

Function: setAlbum(album)


Set the album of the music item.

Parameters
albumstring - Album.

v20 Python API changes
New function added.

◆ setAlbumArtist()

void XBMCAddon::xbmc::InfoTagMusic::setAlbumArtist ( ...)

Function: setAlbumArtist(albumArtist)


Set the album artist(s) of the music item.

Parameters
albumArtiststring - Album artist(s).

v20 Python API changes
New function added.

◆ setAlbumArtistRaw()

void XBMCAddon::xbmc::InfoTagMusic::setAlbumArtistRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & albumArtist )
static

◆ setAlbumRaw()

void XBMCAddon::xbmc::InfoTagMusic::setAlbumRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & album )
static

◆ setArtist()

void XBMCAddon::xbmc::InfoTagMusic::setArtist ( ...)

Function: setArtist(artist)


Set the artist(s) of the music item.

Parameters
artiststring - Artist(s).

v20 Python API changes
New function added.

◆ setArtistRaw()

void XBMCAddon::xbmc::InfoTagMusic::setArtistRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & artist )
static

◆ setComment()

void XBMCAddon::xbmc::InfoTagMusic::setComment ( ...)

Function: setComment(comment)


Set the comment of the music item.

Parameters
commentstring - Comment.

v20 Python API changes
New function added.

◆ setCommentRaw()

void XBMCAddon::xbmc::InfoTagMusic::setCommentRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & comment )
static

◆ setDbId()

void XBMCAddon::xbmc::InfoTagMusic::setDbId ( ...)

Function: setDbId(dbId, type)


Set the database identifier of the music item.

Parameters
dbIdinteger - Database identifier.
typestring - Media type of the item.

v20 Python API changes
New function added.

◆ setDbIdRaw()

void XBMCAddon::xbmc::InfoTagMusic::setDbIdRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int dbId,
const String & type )
static

◆ setDisc()

void XBMCAddon::xbmc::InfoTagMusic::setDisc ( ...)

Function: setDisc(disc)


Set the disc number of the song.

Parameters
discinteger - Disc number.

v20 Python API changes
New function added.

◆ setDiscRaw()

void XBMCAddon::xbmc::InfoTagMusic::setDiscRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int disc )
static

◆ setDuration()

void XBMCAddon::xbmc::InfoTagMusic::setDuration ( ...)

Function: setDuration(duration)


Set the duration of the song.

Parameters
durationinteger - Duration in seconds.

v20 Python API changes
New function added.

◆ setDurationRaw()

void XBMCAddon::xbmc::InfoTagMusic::setDurationRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int duration )
static

◆ setGenres()

void XBMCAddon::xbmc::InfoTagMusic::setGenres ( ...)

Function: setGenres(genres)


Set the genres of the music item.

Parameters
genreslist - Genres.

v20 Python API changes
New function added.

◆ setGenresRaw()

void XBMCAddon::xbmc::InfoTagMusic::setGenresRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const std::vector< String > & genres )
static

◆ setLastPlayed()

void XBMCAddon::xbmc::InfoTagMusic::setLastPlayed ( ...)

Function: setLastPlayed(lastPlayed)


Set the last played date of the music item.

Parameters
lastPlayedstring - Last played date (YYYY-MM-DD HH:MM:SS).

v20 Python API changes
New function added.

◆ setLastPlayedRaw()

void XBMCAddon::xbmc::InfoTagMusic::setLastPlayedRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & lastPlayed )
static

◆ setListeners()

void XBMCAddon::xbmc::InfoTagMusic::setListeners ( ...)

Function: setListeners(listeners)


Set the number of listeners of the music item.

Parameters
listenersinteger - Number of listeners.

v20 Python API changes
New function added.

◆ setListenersRaw()

void XBMCAddon::xbmc::InfoTagMusic::setListenersRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int listeners )
static

◆ setLyrics()

void XBMCAddon::xbmc::InfoTagMusic::setLyrics ( ...)

Function: setLyrics(lyrics)


Set the lyrics of the song.

Parameters
lyricsstring - Lyrics.

v20 Python API changes
New function added.

◆ setLyricsRaw()

void XBMCAddon::xbmc::InfoTagMusic::setLyricsRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & lyrics )
static

◆ setMediaType()

void XBMCAddon::xbmc::InfoTagMusic::setMediaType ( ...)

Function: setMediaType(mediaType)


Set the media type of the music item.

Parameters
mediaTypestring - Media type.

v20 Python API changes
New function added.

◆ setMediaTypeRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMediaTypeRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & mediaType )
static

◆ setMusicBrainzAlbumArtistID()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumArtistID ( ...)

Function: setMusicBrainzAlbumArtistID(musicBrainzAlbumArtistID)


Set the MusicBrainz album artist IDs of the music item.

Parameters
musicBrainzAlbumArtistIDlist - MusicBrainz album artist IDs.

v20 Python API changes
New function added.

◆ setMusicBrainzAlbumArtistIDRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumArtistIDRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const std::vector< String > & musicBrainzAlbumArtistID )
static

◆ setMusicBrainzAlbumID()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumID ( ...)

Function: setMusicBrainzAlbumID(musicBrainzAlbumID)


Set the MusicBrainz album ID of the music item.

Parameters
musicBrainzAlbumIDstring - MusicBrainz album ID.

v20 Python API changes
New function added.

◆ setMusicBrainzAlbumIDRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzAlbumIDRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & musicBrainzAlbumID )
static

◆ setMusicBrainzArtistID()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzArtistID ( ...)

Function: setMusicBrainzArtistID(musicBrainzArtistID)


Set the MusicBrainz artist IDs of the music item.

Parameters
musicBrainzArtistIDlist - MusicBrainz artist IDs.

v20 Python API changes
New function added.

◆ setMusicBrainzArtistIDRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzArtistIDRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const std::vector< String > & musicBrainzArtistID )
static

◆ setMusicBrainzReleaseGroupID()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzReleaseGroupID ( ...)

Function: setMusicBrainzReleaseGroupID(musicBrainzReleaseGroupID)


Set the MusicBrainz release group ID of the music item.

Parameters
musicBrainzReleaseGroupIDstring - MusicBrainz release group ID.

v20 Python API changes
New function added.

◆ setMusicBrainzReleaseGroupIDRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzReleaseGroupIDRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & musicBrainzReleaseGroupID )
static

◆ setMusicBrainzTrackID()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzTrackID ( ...)

Function: setMusicBrainzTrackID(musicBrainzTrackID)


Set the MusicBrainz track ID of the song.

Parameters
musicBrainzTrackIDstring - MusicBrainz track ID.

v20 Python API changes
New function added.

◆ setMusicBrainzTrackIDRaw()

void XBMCAddon::xbmc::InfoTagMusic::setMusicBrainzTrackIDRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & musicBrainzTrackID )
static

◆ setPlayCount()

void XBMCAddon::xbmc::InfoTagMusic::setPlayCount ( ...)

Function: setPlayCount(playcount)


Set the playcount of the music item.

Parameters
playcountinteger - Playcount.

v20 Python API changes
New function added.

◆ setPlayCountRaw()

void XBMCAddon::xbmc::InfoTagMusic::setPlayCountRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int playcount )
static

◆ setRating()

void XBMCAddon::xbmc::InfoTagMusic::setRating ( ...)

Function: setRating(rating)


Set the rating of the music item.

Parameters
ratingfloat - Rating.

v20 Python API changes
New function added.

◆ setRatingRaw()

void XBMCAddon::xbmc::InfoTagMusic::setRatingRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
float rating )
static

◆ setReleaseDate()

void XBMCAddon::xbmc::InfoTagMusic::setReleaseDate ( ...)

Function: setReleaseDate(releaseDate)


Set the release date of the music item.

Parameters
releaseDatestring - Release date in ISO8601 format (YYYY, YYYY-MM or YYYY-MM-DD).

v20 Python API changes
New function added.

◆ setReleaseDateRaw()

void XBMCAddon::xbmc::InfoTagMusic::setReleaseDateRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & releaseDate )
static

◆ setSongVideoURL()

void XBMCAddon::xbmc::InfoTagMusic::setSongVideoURL ( ...)

Function: setSongVideoURL(songVideoURL)


Set the URL of the song to point to a video.

Parameters
songVideoURLstring - URL to a video of the song.

v21 Python API changes
New function added.

◆ setSongVideoURLRaw()

void XBMCAddon::xbmc::InfoTagMusic::setSongVideoURLRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & songVideoURL )
static

◆ setTitle()

void XBMCAddon::xbmc::InfoTagMusic::setTitle ( ...)

Function: setTitle(title)


Set the title of the music item.

Parameters
titlestring - Title.

v20 Python API changes
New function added.

◆ setTitleRaw()

void XBMCAddon::xbmc::InfoTagMusic::setTitleRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & title )
static

◆ setTrack()

void XBMCAddon::xbmc::InfoTagMusic::setTrack ( ...)

Function: setTrack(track)


Set the track number of the song.

Parameters
trackinteger - Track number.

v20 Python API changes
New function added.

◆ setTrackRaw()

void XBMCAddon::xbmc::InfoTagMusic::setTrackRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int track )
static

◆ setURL()

void XBMCAddon::xbmc::InfoTagMusic::setURL ( ...)

Function: setURL(url)


Set the URL of the music item.

Parameters
urlstring - URL.

v20 Python API changes
New function added.

◆ setURLRaw()

void XBMCAddon::xbmc::InfoTagMusic::setURLRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
const String & url )
static

◆ setUserRating()

void XBMCAddon::xbmc::InfoTagMusic::setUserRating ( ...)

Function: setUserRating(userrating)


Set the user rating of the music item.

Parameters
userratinginteger - User rating.

v20 Python API changes
New function added.

◆ setUserRatingRaw()

void XBMCAddon::xbmc::InfoTagMusic::setUserRatingRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int userrating )
static

◆ setYear()

void XBMCAddon::xbmc::InfoTagMusic::setYear ( ...)

Function: setYear(year)


Set the year of the music item.

Parameters
yearinteger - Year.

v20 Python API changes
New function added.

◆ setYearRaw()

void XBMCAddon::xbmc::InfoTagMusic::setYearRaw ( MUSIC_INFO::CMusicInfoTag * infoTag,
int year )
static

◆ ~InfoTagMusic()

XBMCAddon::xbmc::InfoTagMusic::~InfoTagMusic ( )
override