Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
XBMCAddon::xbmc::InfoTagMusic Class Reference

#include <InfoTagMusic.h>

Inheritance diagram for XBMCAddon::xbmc::InfoTagMusic:
XBMCAddon::AddonClass

Public Member Functions

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

Function: xbmc.InfoTagMusic([offscreen])


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

Function: getDbId()


Get identification number of tag in database.
 
 getURL ()
 

Function: getURL()


Returns url of source as string from music info tag.
 
 getTitle ()
 

Function: getTitle()


Returns the title from music as string on info tag.
 
 getMediaType ()
 

Function: getMediaType()


Get the media type of the music item.
 
 getArtist ()
 

Function: getArtist()


Returns the artist from music as string if present.
 
 getAlbum ()
 

Function: getAlbum()


Returns the album from music tag as string if present.
 
 getAlbumArtist ()
 

Function: getAlbumArtist()


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

Function: getGenre()


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

Function: getGenres()


Returns the list of genres from music tag if present.
 
 getDuration ()
 

Function: getDuration()


Returns the duration of music as integer from info tag.
 
 getYear ()
 

Function: getYear()


Returns the year of music as integer from info tag.
 
 getRating ()
 

Function: getRating()


Returns the scraped rating as integer.
 
 getUserRating ()
 

Function: getUserRating()


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

Function: getTrack()


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

Function: getDisc()


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

Function: getReleaseDate()


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

Function: getListeners()


Returns the listeners as integer from music info tag.
 
 getPlayCount ()
 

Function: getPlayCount()


Returns the number of carried out playbacks.
 
 getLastPlayed ()
 

Function: getLastPlayed()


Returns last played time as string from music info tag.
 
 getLastPlayedAsW3C ()
 

Function: getLastPlayedAsW3C()


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

Function: getComment()


Returns comment as string from music info tag.
 
 getLyrics ()
 

Function: getLyrics()


Returns a string from lyrics.
 
 getMusicBrainzTrackID ()
 

Function: getMusicBrainzTrackID()


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

Function: getMusicBrainzArtistID()


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

Function: getMusicBrainzAlbumID()


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

Function: getMusicBrainzReleaseGroupID()


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

Function: getMusicBrainzAlbumArtistID()


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

Function: getSongVideoURL()


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

Function: setDbId(dbId, type)


Set the database identifier of the music item.
 
 setURL (...)
 

Function: setURL(url)


Set the URL of the music item.
 
 setMediaType (...)
 

Function: setMediaType(mediaType)


Set the media type of the music item.
 
 setTrack (...)
 

Function: setTrack(track)


Set the track number of the song.
 
 setDisc (...)
 

Function: setDisc(disc)


Set the disc number of the song.
 
 setDuration (...)
 

Function: setDuration(duration)


Set the duration of the song.
 
 setYear (...)
 

Function: setYear(year)


Set the year of the music item.
 
 setReleaseDate (...)
 

Function: setReleaseDate(releaseDate)


Set the release date of the music item.
 
 setListeners (...)
 

Function: setListeners(listeners)


Set the number of listeners of the music item.
 
 setPlayCount (...)
 

Function: setPlayCount(playcount)


Set the playcount of the music item.
 
 setGenres (...)
 

Function: setGenres(genres)


Set the genres of the music item.
 
 setAlbum (...)
 

Function: setAlbum(album)


Set the album of the music item.
 
 setArtist (...)
 

Function: setArtist(artist)


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

Function: setAlbumArtist(albumArtist)


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

Function: setTitle(title)


Set the title of the music item.
 
 setRating (...)
 

Function: setRating(rating)


Set the rating of the music item.
 
 setUserRating (...)
 

Function: setUserRating(userrating)


Set the user rating of the music item.
 
 setLyrics (...)
 

Function: setLyrics(lyrics)


Set the lyrics of the song.
 
 setLastPlayed (...)
 

Function: setLastPlayed(lastPlayed)


Set the last played date of the music item.
 
 setMusicBrainzTrackID (...)
 

Function: setMusicBrainzTrackID(musicBrainzTrackID)


Set the MusicBrainz track ID of the song.
 
 setMusicBrainzArtistID (...)
 

Function: setMusicBrainzArtistID(musicBrainzArtistID)


Set the MusicBrainz artist IDs of the music item.
 
 setMusicBrainzAlbumID (...)
 

Function: setMusicBrainzAlbumID(musicBrainzAlbumID)


Set the MusicBrainz album ID of the music item.
 
 setMusicBrainzReleaseGroupID (...)
 

Function: setMusicBrainzReleaseGroupID(musicBrainzReleaseGroupID)


Set the MusicBrainz release group ID of the music item.
 
 setMusicBrainzAlbumArtistID (...)
 

Function: setMusicBrainzAlbumArtistID(musicBrainzAlbumArtistID)


Set the MusicBrainz album artist IDs of the music item.
 
 setComment (...)
 

Function: setComment(comment)


Set the comment of the music item.
 
 setSongVideoURL (...)
 

Function: setSongVideoURL(songVideoURL)


Set the URL of the song to point to a video.
 
- Public Member Functions inherited from XBMCAddon::AddonClass
 AddonClass ()
 
virtual ~AddonClass ()
 
const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 
void Release () const
 
void Acquire () const
 

Static Public Member Functions

static void setDbIdRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int dbId, const String &type)
 
static void setURLRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &url)
 
static void setMediaTypeRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &mediaType)
 
static void setTrackRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int track)
 
static void setDiscRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int disc)
 
static void setDurationRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int duration)
 
static void setYearRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int year)
 
static void setReleaseDateRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &releaseDate)
 
static void setListenersRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int listeners)
 
static void setPlayCountRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int playcount)
 
static void setGenresRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &genres)
 
static void setAlbumRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &album)
 
static void setArtistRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &artist)
 
static void setAlbumArtistRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &albumArtist)
 
static void setTitleRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &title)
 
static void setRatingRaw (MUSIC_INFO::CMusicInfoTag *infoTag, float rating)
 
static void setUserRatingRaw (MUSIC_INFO::CMusicInfoTag *infoTag, int userrating)
 
static void setLyricsRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &lyrics)
 
static void setLastPlayedRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &lastPlayed)
 
static void setMusicBrainzTrackIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzTrackID)
 
static void setMusicBrainzArtistIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &musicBrainzArtistID)
 
static void setMusicBrainzAlbumIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzAlbumID)
 
static void setMusicBrainzReleaseGroupIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &musicBrainzReleaseGroupID)
 
static void setMusicBrainzAlbumArtistIDRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const std::vector< String > &musicBrainzAlbumArtistID)
 
static void setCommentRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &comment)
 
static void setSongVideoURLRaw (MUSIC_INFO::CMusicInfoTag *infoTag, const String &songVideoURL)
 
- Static Public Member Functions inherited from XBMCAddon::AddonClass
static short getNumAddonClasses ()
 

Additional Inherited Members

- Protected Member Functions inherited from XBMCAddon::AddonClass
virtual void deallocating ()
 
- Static Protected Member Functions inherited from XBMCAddon::AddonClass
static short getNextClassIndex ()
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 

The documentation for this class was generated from the following files: