|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Typedefs | |
| using | Artwork = std::map< std::string, std::string, std::less<> > |
| A container for artwork. key: artwork type, value: URL of artwork file. | |
| using | SeasonsArtwork = std::map< int, Artwork > |
| A container for artwork for multiple seasons. key: season number, value: artwork. | |
Enumerations | |
| enum class | AdditionalIdentifiers : uint8_t { NONE , SEASON_AND_EPISODE , PLAYLIST } |
Functions | |
| void | FillInDefaultIcon (CFileItem &item) |
| Set default icon for item. | |
| std::string | GetFolderThumb (const CFileItem &item, const std::string &folderJPG="folder.jpg") |
| Get the folder image associated with item. | |
| std::string | GetLocalArt (const CFileItem &item, const std::string &artFile, bool useFolder=false, AdditionalIdentifiers useSeasonAndEpisode=AdditionalIdentifiers::NONE) |
| Assemble the filename of a particular piece of local artwork for an item. No file existence check is typically performed. | |
| std::string | GetLocalArtBaseFilename (const CFileItem &item, bool &useFolder, AdditionalIdentifiers additionalIdentifiers=AdditionalIdentifiers::NONE) |
| Assemble the base filename of local artwork for an item, accounting for archives, stacks and multi-paths, and BDMV/VIDEO_TS folders. | |
| std::string | GetLocalFanart (const CFileItem &item) |
| Get the local fanart for item if it exists. | |
| std::string | GetTBNFile (const CFileItem &item, int season=-1, int episode=-1) |
| Get the .tbn file associated with an item. | |
| using KODI::ART::Artwork = typedef std::map<std::string, std::string, std::less<> > |
A container for artwork. key: artwork type, value: URL of artwork file.
| using KODI::ART::SeasonsArtwork = typedef std::map<int, Artwork> |
A container for artwork for multiple seasons. key: season number, value: artwork.
|
strong |
| std::string KODI::ART::GetFolderThumb | ( | const CFileItem & | item, |
| const std::string & | folderJPG = "folder.jpg" |
||
| ) |
Get the folder image associated with item.
| item | Item to get folder image for |
| folderJPG | Thumb file to use |
| std::string KODI::ART::GetLocalArt | ( | const CFileItem & | item, |
| const std::string & | artFile, | ||
| bool | useFolder = false, |
||
| AdditionalIdentifiers | useSeasonAndEpisode = AdditionalIdentifiers::NONE |
||
| ) |
Assemble the filename of a particular piece of local artwork for an item. No file existence check is typically performed.
| artFile | the art file to search for. |
| useFolder | whether to look in the folder for the art file. Defaults to false. |
| additionalIdentifiers | for multi-episode/multi-movie files. Append SxxEyy or playlist number to the file name. Defaults to none. |
| std::string KODI::ART::GetLocalArtBaseFilename | ( | const CFileItem & | item, |
| bool & | useFolder, | ||
| AdditionalIdentifiers | additionalIdentifiers = AdditionalIdentifiers::NONE |
||
| ) |
Assemble the base filename of local artwork for an item, accounting for archives, stacks and multi-paths, and BDMV/VIDEO_TS folders.
| useFolder | whether to look in the folder for the art file. Defaults to false. |
| additionalIdentifiers | for multi-episode/multi-movie files. Append SxxEyy or playlist number to the file name. Defaults to none. |
| std::string KODI::ART::GetLocalFanart | ( | const CFileItem & | item | ) |
Get the local fanart for item if it exists.
Get the .tbn file associated with an item.
| item | CFileItem containing the item path. |
| season | For multi-episode files. Append SxxEyy to the file name. |
| episode | For multi-episode files. Append SxxEyy to the file name. |