Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::VIDEO::TAGS::CVideoTagExtractionHelper Class Reference

#include <VideoTagExtractionHelper.h>

Static Public Member Functions

static bool IsExtractionSupportedFor (const CFileItem &item)
 Check whether tag extraction is supported for the given item. This is no check whether the video denoted by the item actually contains any tags. There is also a Kodi setting for enabling video tag support that is taken into consideration by the implementation of this function.
 
static std::string ExtractEmbeddedArtFor (const CFileItem &item, const std::string &artType)
 Try to extract embedded art of given type from the given item denoting a video file.
 

Member Function Documentation

◆ ExtractEmbeddedArtFor()

std::string KODI::VIDEO::TAGS::CVideoTagExtractionHelper::ExtractEmbeddedArtFor ( const CFileItem & item,
const std::string & artType )
static

Try to extract embedded art of given type from the given item denoting a video file.

Parameters
item[in] the item.
artTypeThe type of the art to extract (e.g. "fanart").
Returns
The image URL of the embedded art if extraction was successful, false otherwise.

◆ IsExtractionSupportedFor()

bool KODI::VIDEO::TAGS::CVideoTagExtractionHelper::IsExtractionSupportedFor ( const CFileItem & item)
static

Check whether tag extraction is supported for the given item. This is no check whether the video denoted by the item actually contains any tags. There is also a Kodi setting for enabling video tag support that is taken into consideration by the implementation of this function.

Parameters
item[in] the item denoting a video file.
Returns
True if tag support is enabled and extraction is supported for the given file type.

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