get_file


Description:


[ Version ( since = "0.2.0" ) ]
public bool get_file (string? artist, string? title, string? prefix, out File cache_file)

Gets the files pointing to cache files suitable for storing the media art provided by the artist, title and file arguments.

cache_file will point to a location in the XDG user cache directory..

The cache_file relates to a symlink stored in XDG cache directories for the user. A cache_file would be expected to look like <filename>file:///home/martyn/.cache/media-art/...</filename>. This is normally the location that is most useful (assuming the cache has been extracted in the first place).

When done, both File<!-- -->s must be freed with unref if non-null.

This operation should not use i/o, but it depends on the backend GFile implementation.

All string inputs must be valid UTF8. Use validate if the input has not already been validated.

Parameters:

artist

the artist

title

the title

prefix

the prefix for cache files, for example "album"

cache_file

a pointer to a File which represents the cached file for media art, or null a File representing the user& apos;s cache path, or null File representing the location of the local media art

Returns:

true if cache_file was returned, otherwise false.


Namespace: MediaArt
Package: libmediaart-2.0