Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <VideoInfoTag.h>
Classes | |
class | CAssetInfo |
struct | SetInfo |
< Struct holding information about a movie set More... | |
Public Types | |
typedef std::vector< SActorInfo >::const_iterator | iCast |
Public Member Functions | |
CVideoInfoTag () | |
virtual | ~CVideoInfoTag ()=default |
void | Reset () |
bool | Load (const TiXmlElement *element, bool append=false, bool prioritise=false) |
bool | Save (TiXmlNode *node, const std::string &tag, bool savePathInfo=true, const TiXmlElement *additionalNode=NULL) |
void | Merge (CVideoInfoTag &other) |
void | Archive (CArchive &ar) override |
void | Serialize (CVariant &value) const override |
void | ToSortable (SortItem &sortable, Field field) const override |
const CRating | GetRating (std::string type="") const |
const std::string & | GetDefaultRating () const |
const std::string | GetUniqueID (std::string type="") const |
const std::map< std::string, std::string > & | GetUniqueIDs () const |
const std::string & | GetDefaultUniqueID () const |
bool | HasUniqueID () const |
virtual bool | HasYear () const |
virtual int | GetYear () const |
bool | HasPremiered () const |
const CDateTime & | GetPremiered () const |
const CDateTime & | GetFirstAired () const |
const std::string | GetCast (bool bIncludeRole=false) const |
bool | HasStreamDetails () const |
bool | IsEmpty () const |
const std::string & | GetPath () const |
void | SetDuration (int duration) |
set the duration in seconds | |
unsigned int | GetDuration () const |
retrieve the duration in seconds. Prefers the duration from stream details if available. | |
unsigned int | GetStaticDuration () const |
retrieve the duration in seconds. Ignores the duration from stream details even if available. | |
void | SetBasePath (std::string basePath) |
void | SetDirector (std::vector< std::string > director) |
void | SetWritingCredits (std::vector< std::string > writingCredits) |
void | SetGenre (std::vector< std::string > genre) |
void | SetCountry (std::vector< std::string > country) |
void | SetTagLine (std::string tagLine) |
void | SetPlotOutline (std::string plotOutline) |
void | SetTrailer (std::string trailer) |
void | SetPlot (std::string plot) |
std::string const & | GetTitle () const |
void | SetTitle (std::string title) |
void | SetSortTitle (std::string sortTitle) |
void | SetPictureURL (CScraperUrl &pictureURL) |
void | SetRating (float rating, int votes, const std::string &type="", bool def=false) |
void | SetRating (CRating rating, const std::string &type="", bool def=false) |
void | SetRating (float rating, const std::string &type="", bool def=false) |
void | RemoveRating (const std::string &type) |
void | SetRatings (RatingMap ratings, const std::string &defaultRating="") |
void | SetVotes (int votes, const std::string &type="") |
void | SetUniqueIDs (std::map< std::string, std::string > uniqueIDs) |
void | SetPremiered (const CDateTime &premiered) |
void | SetPremieredFromDBDate (const std::string &premieredString) |
virtual void | SetYear (int year) |
void | SetArtist (std::vector< std::string > artist) |
void | SetSet (std::string set) |
void | SetSetOverview (std::string setOverview) |
void | SetTags (std::vector< std::string > tags) |
void | SetFile (std::string file) |
void | SetPath (std::string path) |
void | SetMPAARating (std::string mpaaRating) |
void | SetFileNameAndPath (std::string fileNameAndPath) |
void | SetOriginalTitle (std::string originalTitle) |
void | SetEpisodeGuide (std::string episodeGuide) |
void | SetStatus (std::string status) |
void | SetProductionCode (std::string productionCode) |
void | SetShowTitle (std::string showTitle) |
void | SetStudio (std::vector< std::string > studio) |
void | SetAlbum (std::string album) |
void | SetShowLink (std::vector< std::string > showLink) |
void | SetUniqueID (const std::string &uniqueid, const std::string &type="", bool def=false) |
void | RemoveUniqueID (const std::string &type) |
void | SetNamedSeasons (std::map< int, std::string > namedSeasons) |
void | SetUserrating (int userrating) |
virtual int | GetPlayCount () const |
Get this videos's play count. | |
virtual bool | SetPlayCount (int count) |
Set this videos's play count. | |
virtual bool | IncrementPlayCount () |
Increment this videos's play count. | |
virtual void | ResetPlayCount () |
Reset playcount. | |
virtual bool | IsPlayCountSet () const |
Check if the playcount is set. | |
virtual CBookmark | GetResumePoint () const |
Get this videos's resume point. | |
virtual bool | SetResumePoint (const CBookmark &resumePoint) |
Set this videos's resume point. | |
const CAssetInfo & | GetAssetInfo () const |
Get the video's asset info. | |
CAssetInfo & | GetAssetInfo () |
bool | HasVideoVersions () const |
Whether the item has multiple video versions. | |
void | SetHasVideoVersions (bool hasVersions) |
Set whether this video has video versions. | |
bool | HasVideoExtras () const |
Whether the item has video extras. | |
void | SetHasVideoExtras (bool hasExtras) |
Set whether this video has video extras. | |
bool | IsDefaultVideoVersion () const |
Whether the item is the default video version. | |
void | SetIsDefaultVideoVersion (bool isDefaultVideoVersion) |
Set whether the item is the default version. | |
bool | GetUpdateSetOverview () const |
Get whether the Set Overview should be updated. If an NFO contains a <name> but no <overview> then this allows the current Overview to be kept. Otherwise it is overwritten. Default is true - so if updated by a scraper the Overview will be overwritten. | |
virtual bool | SetResumePoint (double timeInSeconds, double totalTimeInSeconds, const std::string &playerState) |
Set this videos's resume point. | |
Static Public Member Functions | |
static unsigned int | GetDurationFromMinuteString (const std::string &runtime) |
get the duration in seconds from a minute string | |
Additional Inherited Members | |
Protected Member Functions inherited from IArchivable | |
virtual | ~IArchivable ()=default |
Protected Member Functions inherited from ISerializable | |
~ISerializable ()=default | |
Protected Member Functions inherited from ISortable | |
~ISortable ()=default | |
typedef std::vector<SActorInfo>::const_iterator CVideoInfoTag::iCast |
|
inline |
|
virtualdefault |
Implements IArchivable.
|
inline |
|
inline |
Get the video's asset info.
const std::string CVideoInfoTag::GetCast | ( | bool | bIncludeRole = false | ) | const |
const std::string & CVideoInfoTag::GetDefaultRating | ( | ) | const |
const std::string & CVideoInfoTag::GetDefaultUniqueID | ( | ) | const |
unsigned int CVideoInfoTag::GetDuration | ( | ) | const |
retrieve the duration in seconds. Prefers the duration from stream details if available.
|
static |
get the duration in seconds from a minute string
runtime | the runtime string from a scraper or similar |
const CDateTime & CVideoInfoTag::GetFirstAired | ( | ) | const |
|
inline |
|
virtual |
Get this videos's play count.
const CDateTime & CVideoInfoTag::GetPremiered | ( | ) | const |
const CRating CVideoInfoTag::GetRating | ( | std::string | type = "" | ) | const |
|
virtual |
unsigned int CVideoInfoTag::GetStaticDuration | ( | ) | const |
retrieve the duration in seconds. Ignores the duration from stream details even if available.
std::string const & CVideoInfoTag::GetTitle | ( | ) | const |
const std::string CVideoInfoTag::GetUniqueID | ( | std::string | type = "" | ) | const |
const std::map< std::string, std::string > & CVideoInfoTag::GetUniqueIDs | ( | ) | const |
|
inline |
Get whether the Set Overview should be updated. If an NFO contains a <name> but no <overview> then this allows the current Overview to be kept. Otherwise it is overwritten. Default is true - so if updated by a scraper the Overview will be overwritten.
|
virtual |
Reimplemented in PVR::CPVRRecording.
bool CVideoInfoTag::HasPremiered | ( | ) | const |
bool CVideoInfoTag::HasStreamDetails | ( | ) | const |
bool CVideoInfoTag::HasUniqueID | ( | ) | const |
|
inline |
Whether the item has video extras.
|
inline |
Whether the item has multiple video versions.
|
virtual |
Reimplemented in PVR::CPVRRecording.
|
virtual |
Increment this videos's play count.
Reimplemented in PVR::CPVRRecording.
|
inline |
Whether the item is the default video version.
bool CVideoInfoTag::IsEmpty | ( | ) | const |
|
virtual |
Check if the playcount is set.
bool CVideoInfoTag::Load | ( | const TiXmlElement * | element, |
bool | append = false, | ||
bool | prioritise = false ) |
void CVideoInfoTag::Merge | ( | CVideoInfoTag & | other | ) |
void CVideoInfoTag::RemoveRating | ( | const std::string & | type | ) |
void CVideoInfoTag::RemoveUniqueID | ( | const std::string & | type | ) |
void CVideoInfoTag::Reset | ( | ) |
|
virtual |
Reset playcount.
bool CVideoInfoTag::Save | ( | TiXmlNode * | node, |
const std::string & | tag, | ||
bool | savePathInfo = true, | ||
const TiXmlElement * | additionalNode = NULL ) |
Implements ISerializable.
void CVideoInfoTag::SetAlbum | ( | std::string | album | ) |
void CVideoInfoTag::SetArtist | ( | std::vector< std::string > | artist | ) |
void CVideoInfoTag::SetBasePath | ( | std::string | basePath | ) |
void CVideoInfoTag::SetCountry | ( | std::vector< std::string > | country | ) |
void CVideoInfoTag::SetDirector | ( | std::vector< std::string > | director | ) |
set the duration in seconds
duration | the duration to set |
void CVideoInfoTag::SetEpisodeGuide | ( | std::string | episodeGuide | ) |
void CVideoInfoTag::SetFile | ( | std::string | file | ) |
void CVideoInfoTag::SetFileNameAndPath | ( | std::string | fileNameAndPath | ) |
void CVideoInfoTag::SetGenre | ( | std::vector< std::string > | genre | ) |
Set whether this video has video extras.
hasExtras | The extras flag. |
Set whether this video has video versions.
hasVersion | The versions flag. |
Set whether the item is the default version.
isDefaultVideoVersion | The default flag. |
void CVideoInfoTag::SetMPAARating | ( | std::string | mpaaRating | ) |
void CVideoInfoTag::SetOriginalTitle | ( | std::string | originalTitle | ) |
void CVideoInfoTag::SetPath | ( | std::string | path | ) |
void CVideoInfoTag::SetPictureURL | ( | CScraperUrl & | pictureURL | ) |
Set this videos's play count.
count | play count. |
Reimplemented in PVR::CPVRRecording.
void CVideoInfoTag::SetPlot | ( | std::string | plot | ) |
void CVideoInfoTag::SetPlotOutline | ( | std::string | plotOutline | ) |
void CVideoInfoTag::SetPremieredFromDBDate | ( | const std::string & | premieredString | ) |
void CVideoInfoTag::SetProductionCode | ( | std::string | productionCode | ) |
void CVideoInfoTag::SetRating | ( | float | rating, |
int | votes, | ||
const std::string & | type = "", | ||
bool | def = false ) |
Set this videos's resume point.
resumePoint | resume point. |
Reimplemented in PVR::CPVRRecording.
|
virtual |
Set this videos's resume point.
timeInSeconds | the time of the resume point |
totalTimeInSeconds | the total time of the video |
playerState | the player state |
Reimplemented in PVR::CPVRRecording.
void CVideoInfoTag::SetSet | ( | std::string | set | ) |
void CVideoInfoTag::SetSetOverview | ( | std::string | setOverview | ) |
void CVideoInfoTag::SetShowLink | ( | std::vector< std::string > | showLink | ) |
void CVideoInfoTag::SetShowTitle | ( | std::string | showTitle | ) |
void CVideoInfoTag::SetSortTitle | ( | std::string | sortTitle | ) |
void CVideoInfoTag::SetStatus | ( | std::string | status | ) |
void CVideoInfoTag::SetStudio | ( | std::vector< std::string > | studio | ) |
void CVideoInfoTag::SetTagLine | ( | std::string | tagLine | ) |
void CVideoInfoTag::SetTags | ( | std::vector< std::string > | tags | ) |
void CVideoInfoTag::SetTitle | ( | std::string | title | ) |
void CVideoInfoTag::SetTrailer | ( | std::string | trailer | ) |
void CVideoInfoTag::SetUniqueID | ( | const std::string & | uniqueid, |
const std::string & | type = "", | ||
bool | def = false ) |
void CVideoInfoTag::SetUniqueIDs | ( | std::map< std::string, std::string > | uniqueIDs | ) |
void CVideoInfoTag::SetWritingCredits | ( | std::vector< std::string > | writingCredits | ) |
Reimplemented in PVR::CPVRRecording.
Implements ISortable.
std::vector<std::string> CVideoInfoTag::m_artist |
std::string CVideoInfoTag::m_basePath |
bool CVideoInfoTag::m_bHasPremiered |
std::vector< SActorInfo > CVideoInfoTag::m_cast |
std::vector<std::string> CVideoInfoTag::m_country |
std::vector<EmbeddedArtInfo> CVideoInfoTag::m_coverArt |
art information
CDateTime CVideoInfoTag::m_dateAdded |
std::vector<std::string> CVideoInfoTag::m_director |
unsigned int CVideoInfoTag::m_duration |
duration in seconds
CBookmark CVideoInfoTag::m_EpBookmark |
CFanart CVideoInfoTag::m_fanart |
CDateTime CVideoInfoTag::m_firstAired |
std::vector<std::string> CVideoInfoTag::m_genre |
int CVideoInfoTag::m_iBookmarkId |
int CVideoInfoTag::m_iDbId |
int CVideoInfoTag::m_iEpisode |
int CVideoInfoTag::m_iFileId |
int CVideoInfoTag::m_iIdRating |
int CVideoInfoTag::m_iIdSeason |
int CVideoInfoTag::m_iIdShow |
int CVideoInfoTag::m_iIdUniqueID |
int CVideoInfoTag::m_iSeason |
int CVideoInfoTag::m_iSpecialSortEpisode |
int CVideoInfoTag::m_iSpecialSortSeason |
int CVideoInfoTag::m_iTop250 |
int CVideoInfoTag::m_iTrack |
int CVideoInfoTag::m_iUserRating |
CDateTime CVideoInfoTag::m_lastPlayed |
std::map<int, std::string> CVideoInfoTag::m_namedSeasons |
int CVideoInfoTag::m_parentPathID |
int CVideoInfoTag::m_parsedDetails |
CDateTime CVideoInfoTag::m_premiered |
RatingMap CVideoInfoTag::m_ratings |
int CVideoInfoTag::m_relevance |
SetInfo CVideoInfoTag::m_set |
Assigned movie set.
std::vector<std::string> CVideoInfoTag::m_showLink |
std::string CVideoInfoTag::m_strAlbum |
CStreamDetails CVideoInfoTag::m_streamDetails |
std::string CVideoInfoTag::m_strEpisodeGuide |
std::string CVideoInfoTag::m_strFile |
std::string CVideoInfoTag::m_strFileNameAndPath |
std::string CVideoInfoTag::m_strMPAARating |
std::string CVideoInfoTag::m_strOriginalTitle |
std::string CVideoInfoTag::m_strPath |
CScraperUrl CVideoInfoTag::m_strPictureURL |
std::string CVideoInfoTag::m_strPlot |
std::string CVideoInfoTag::m_strPlotOutline |
std::string CVideoInfoTag::m_strProductionCode |
std::string CVideoInfoTag::m_strShowTitle |
std::string CVideoInfoTag::m_strSortTitle |
std::string CVideoInfoTag::m_strStatus |
std::string CVideoInfoTag::m_strTagLine |
std::string CVideoInfoTag::m_strTitle |
std::string CVideoInfoTag::m_strTrailer |
std::vector<std::string> CVideoInfoTag::m_studio |
std::vector<std::string> CVideoInfoTag::m_tags |
MediaType CVideoInfoTag::m_type |
std::vector<std::string> CVideoInfoTag::m_writingCredits |
int CVideoInfoTag::m_year |