VLC 4.0.0-dev
|
Functions | |
static void | ArtCacheCreateDir (char *psz_dir) |
static char * | ArtCacheGetDirPath (const char *psz_arturl, const char *psz_artist, const char *psz_album, const char *psz_date, const char *psz_title) |
static char * | ArtCachePath (input_item_t *p_item) |
static char * | ArtCacheName (input_item_t *p_item, const char *psz_type) |
int | input_FindArtInCache (input_item_t *p_item) |
static char * | GetDirByItemUIDs (char *psz_uid) |
static char * | GetFileByItemUID (char *psz_dir, const char *psz_type) |
int | input_FindArtInCacheUsingItemUID (input_item_t *p_item) |
int | input_SaveArt (vlc_object_t *obj, input_item_t *p_item, const void *data, size_t length, const char *psz_type) |
|
static |
References DIR_SEP_CHAR, EMPTY_STR, and vlc_mkdir().
Referenced by ArtCacheName(), and input_SaveArt().
|
static |
References asprintf(), config_GetUserDir(), DIR_SEP, EMPTY_STR, filename_sanitize(), strdup(), unlikely, VLC_CACHE_DIR, vlc_hash_FinishHex, VLC_HASH_MD5_DIGEST_HEX_SIZE, vlc_hash_md5_Init(), and vlc_hash_md5_Update().
Referenced by ArtCachePath().
|
static |
References ArtCacheCreateDir(), ArtCachePath(), asprintf(), DIR_SEP, filename_sanitize(), psz_ext, strdup(), and unlikely.
Referenced by input_SaveArt().
|
static |
References ArtCacheGetDirPath(), EMPTY_STR, input_item_t::lock, input_item_t::p_meta, input_item_t::psz_name, vlc_meta_Album, vlc_meta_Artist, vlc_meta_ArtworkURL, vlc_meta_Date, vlc_meta_Get(), vlc_meta_New(), vlc_meta_Title, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by ArtCacheName(), and input_FindArtInCache().
|
static |
References asprintf(), config_GetUserDir(), DIR_SEP, unlikely, and VLC_CACHE_DIR.
Referenced by input_FindArtInCacheUsingItemUID(), and input_SaveArt().
|
static |
References asprintf(), and DIR_SEP.
Referenced by input_FindArtInCacheUsingItemUID(), and input_SaveArt().
int input_FindArtInCache | ( | input_item_t * | p_item | ) |
References ArtCachePath(), asprintf(), DIR_SEP, input_item_SetArtURL, vlc_closedir(), VLC_EGENERIC, vlc_opendir(), vlc_path2uri(), vlc_readdir(), and VLC_SUCCESS.
Referenced by input_ExtractAttachmentAndCacheArt(), and SearchByScope().
int input_FindArtInCacheUsingItemUID | ( | input_item_t * | p_item | ) |
References GetDirByItemUIDs(), GetFileByItemUID(), input_item_GetInfo(), input_item_SetArtURL, VLC_EGENERIC, vlc_fopen(), and VLC_SUCCESS.
Referenced by SearchByScope().
int input_SaveArt | ( | vlc_object_t * | obj, |
input_item_t * | p_item, | ||
const void * | data, | ||
size_t | length, | ||
const char * | psz_type | ||
) |
References ArtCacheCreateDir(), ArtCacheName(), GetDirByItemUIDs(), GetFileByItemUID(), input_item_GetInfo(), input_item_SetArtURL, msg_Dbg, msg_Err, VLC_EGENERIC, vlc_fopen(), vlc_path2uri(), vlc_stat(), vlc_strerror_c(), and VLC_SUCCESS.
Referenced by input_ExtractAttachmentAndCacheArt(), and RunDownloader().