Callbacks

FilterFunc (source, media, *user_data)

Details

GrlPls.FilterFunc(source, media, *user_data)
Parameters:
Returns:

None to not add this entry to the results, or a new Grl.Media populated with metadata of your choice.

Return type:

Grl.Media

Callback type to filter, or modify Grl.Media created when parsing a playlist using one of GrlPls.browse(), GrlPls.browse_sync() or GrlPls.browse_by_spec().

The callback is responsible for unreffing media when returning None or another Grl.Media.