request

@accepts(RB.ExtDBKey, RB.ExtDBRequestCallback, gpointer, GLib.DestroyNotify)
@returns(gboolean)
def request(key, callback, user_data, destroy)

Requests a metadata item. If the item is cached, the callback will be called synchronously. Otherwise, metadata providers will provide results asynchronously.

key :

metadata lookup key

callback :

callback to call with results

user_data :

user data to pass to the callback

destroy :

destroy function for @user_data

Returns :

True if results may be provided after returning