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