kodi
Public Member Functions | Protected Attributes | List of all members
VIDEO::IVideoInfoTagLoader Class Referenceabstract

Base class for video tag loaders. More...

#include <IVideoInfoTagLoader.h>

Inheritance diagram for VIDEO::IVideoInfoTagLoader:
Inheritance graph
[legend]
Collaboration diagram for VIDEO::IVideoInfoTagLoader:
Collaboration graph
[legend]

Public Member Functions

 IVideoInfoTagLoader (const CFileItem &item, ADDON::ScraperPtr info, bool lookInFolder)
 Constructor. More...
 
virtual bool HasInfo () const =0
 Returns true if we have info to provide.
 
virtual CInfoScanner::INFO_TYPE Load (CVideoInfoTag &tag, bool prioritise, std::vector< EmbeddedArt > *art=nullptr)=0
 Load tag from file. More...
 
const CScraperUrlScraperUrl () const
 Returns url associated with obtained URL (NFO_URL et al).
 
const ADDON::ScraperPtr GetAddonInfo () const
 Returns current scaper info.
 

Protected Attributes

const CFileItemm_item
 Reference to item to load for.
 
ADDON::ScraperPtr m_info
 Scraper info.
 
CScraperUrl m_url
 URL for scraper.
 

Detailed Description

Base class for video tag loaders.

Constructor & Destructor Documentation

◆ IVideoInfoTagLoader()

VIDEO::IVideoInfoTagLoader::IVideoInfoTagLoader ( const CFileItem item,
ADDON::ScraperPtr  info,
bool  lookInFolder 
)
inline

Constructor.

Parameters
itemThe item to load info for
infoScraper info
llokInFolderTrue to look in folder holding file

Member Function Documentation

◆ Load()

virtual CInfoScanner::INFO_TYPE VIDEO::IVideoInfoTagLoader::Load ( CVideoInfoTag tag,
bool  prioritise,
std::vector< EmbeddedArt > *  art = nullptr 
)
pure virtual

Load tag from file.

tag Tag to load info into prioritise True to prioritise data over existing data in tag

Returns
True if tag was read, false otherwise

Implemented in CVideoTagLoaderFFmpeg, CVideoTagLoaderPlugin, and CVideoTagLoaderNFO.


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