Callbacks¶
|
Details¶
- GrlPls.FilterFunc(source, media, *user_data)¶
- Parameters:
source (
Grl.Source
) – theGrl.Source
the browse call came fromuser_data (
object
orNone
) – user data passed to the browse call
- Returns:
None
to not add this entry to the results, or a newGrl.Media
populated with metadata of your choice.- Return type:
Callback type to filter, or modify
Grl.Media
created when parsing a playlist using one ofGrlPls.browse
(),GrlPls.browse_sync
() orGrlPls.browse_by_spec
().The callback is responsible for unreffing media when returning
None
or anotherGrl.Media
.