#include <VideoThumbLoader.h>
|
static std::string | GetLocalArt (const CFileItem &item, const std::string &type, bool checkFolder=false) |
| Find a particular art type for a given item, optionally checking at the folder level.
|
|
static std::vector< std::string > | GetArtTypes (const std::string &type) |
| return the available art types for a given media type
|
|
static bool | IsValidArtType (const std::string &potentialArtType) |
|
static bool | IsArtTypeInWhitelist (const std::string &artType, const std::vector< std::string > &whitelist, bool exact) |
|
static std::string | GetEmbeddedThumbURL (const CFileItem &item) |
| helper function to retrieve a thumb URL for embedded video thumbs
|
|
◆ CVideoThumbLoader()
CVideoThumbLoader::CVideoThumbLoader |
( |
| ) |
|
◆ ~CVideoThumbLoader()
CVideoThumbLoader::~CVideoThumbLoader |
( |
| ) |
|
|
override |
◆ DetectAndAddMissingItemData()
void CVideoThumbLoader::DetectAndAddMissingItemData |
( |
CFileItem & | item | ) |
|
|
protected |
Tries to detect missing data/info from a file and adds those.
- Parameters
-
- Returns
- void
- Todo
- in case of too many false positives due to using the full path, extract the filename only using string utils
◆ FillLibraryArt()
helper function to fill the art for a video library item
- Parameters
-
- Returns
- true if we fill art, false otherwise
- Todo
- Is m_artist set other than musicvideo? Remove this fallback if not.
Reimplemented from CThumbLoader.
◆ FillThumb()
Fill the thumb of a video item First uses a cached thumb from a previous run, then checks for a local thumb and caches it for the next run.
- Parameters
-
- Returns
- true if we fill the thumb, false otherwise
◆ GetArtFromCache()
const ArtMap & CVideoThumbLoader::GetArtFromCache |
( |
const std::string & | mediaType, |
|
|
const int | id ) |
|
protected |
◆ GetArtTypes()
std::vector< std::string > CVideoThumbLoader::GetArtTypes |
( |
const std::string & | type | ) |
|
|
static |
return the available art types for a given media type
- Parameters
-
- Returns
- a vector of art types.
- See also
- GetLocalArt
◆ GetEmbeddedThumbURL()
std::string CVideoThumbLoader::GetEmbeddedThumbURL |
( |
const CFileItem & | item | ) |
|
|
static |
helper function to retrieve a thumb URL for embedded video thumbs
- Parameters
-
- Returns
- a URL for the embedded thumb.
◆ GetLocalArt()
std::string CVideoThumbLoader::GetLocalArt |
( |
const CFileItem & | item, |
|
|
const std::string & | type, |
|
|
bool | checkFolder = false ) |
|
static |
Find a particular art type for a given item, optionally checking at the folder level.
- Parameters
-
item | the CFileItem to search. |
type | the type of art to look for. |
checkFolder | whether to also check the folder level for files. Defaults to false. |
- Returns
- the art file (if found), else empty.
◆ IsArtTypeInWhitelist()
bool CVideoThumbLoader::IsArtTypeInWhitelist |
( |
const std::string & | artType, |
|
|
const std::vector< std::string > & | whitelist, |
|
|
bool | exact ) |
|
static |
◆ IsValidArtType()
bool CVideoThumbLoader::IsValidArtType |
( |
const std::string & | potentialArtType | ) |
|
|
static |
◆ LoadItem()
Look for a thumbnail for pItem. If one does not exist, look for an autogenerated thumbnail. If that does not exist, attempt to autogenerate one. Finally, check for the existence of fanart and set properties accordingly.
- Returns
- : true if pItem has been modified
Reimplemented from CBackgroundInfoLoader.
◆ LoadItemCached()
◆ LoadItemLookup()
◆ OnLoaderFinish()
void CVideoThumbLoader::OnLoaderFinish |
( |
| ) |
|
|
overridevirtual |
◆ OnLoaderStart()
void CVideoThumbLoader::OnLoaderStart |
( |
| ) |
|
|
overridevirtual |
◆ m_artCache
◆ m_videoDatabase
The documentation for this class was generated from the following files: