Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PVR::CPVRCachedImages Class Reference

#include <PVRCachedImages.h>

Static Public Member Functions

static int Cleanup (const std::vector< PVRImagePattern > &urlPatterns, const std::vector< std::string > &urlsToCheck, bool clearTextureForPath=false)
 Erase stale texture db entries and image files.
 
static std::string UnwrapImageURL (const std::string &url)
 Extract the wrapped URL from an image URL.
 

Member Function Documentation

◆ Cleanup()

int CPVRCachedImages::Cleanup ( const std::vector< PVRImagePattern > & urlPatterns,
const std::vector< std::string > & urlsToCheck,
bool clearTextureForPath = false )
static

Erase stale texture db entries and image files.

Parameters
urlPatternsThe URL patterns to fetch from texture database.
urlsToCheckThe URLs to check for still being present in the texture db.
clearTextureForPathWhether to clear the path in texture database.
Returns
number of cleaned up images.

◆ UnwrapImageURL()

std::string CPVRCachedImages::UnwrapImageURL ( const std::string & url)
static

Extract the wrapped URL from an image URL.

Parameters
urlThe URL to unwrap.
Returns
The unwrapped URL if url is an image URL, url otherwise.

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