Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
MusicUtils.h File Reference
#include "FileItem.h"

Namespaces

namespace  MUSIC_UTILS
 

Functions

std::string MUSIC_UTILS::ShowSelectArtTypeDialog (CFileItemList &artitems)
 Show a dialog to allow the selection of type of art from a list. Input is a fileitem list, with each item having an "arttype" property e.g. "thumb", current art URL (if art exists), and label. One of these art types can be selected, or a new art type added. The new art type is added as a new item in the list, as well as retuned as the selected art type. More...
 
bool MUSIC_UTILS::FillArtTypesList (CFileItem &musicitem, CFileItemList &artlist)
 Helper function to build a list of art types for a music library item. This fetches the possible types of art for a song, album or artist, and the current art URL (if the item has art of that type), for display on a dialog. More...
 
void MUSIC_UTILS::UpdateArtJob (const CFileItemPtr pItem, const std::string &strType, const std::string &strArt)
 Helper function to asynchronously update art in the music database and then refresh the album & artist art of the currently playing song. For the song, album or artist this adds a job to the queue to update the art table modifying, adding or deleting that type of art. Changes to album or artist art are then passed to the currently playing song (if there is one). More...
 
int MUSIC_UTILS::ShowSelectRatingDialog (int iSelected)
 Show a dialog to allow the selection of user rating. More...
 
void MUSIC_UTILS::UpdateSongRatingJob (const CFileItemPtr pItem, int userrating)
 Helper function to asynchronously update the user rating of a song. More...
 
std::vector< std::string > MUSIC_UTILS::GetArtTypesToScan (const MediaType &mediaType)
 Get the types of art for an artist or album that are to be automatically fetched from local files during scanning. More...