RB.AutoPlaylistSource¶
- Subclasses:
None
Methods¶
- Inherited:
RB.PlaylistSource (10), RB.Source (34), RB.DisplayPage (12), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
Virtual Methods¶
Properties¶
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
Fields¶
- Inherited:
RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class RB.AutoPlaylistSource(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A playlist populated with the results of a database query.
The query, limit, and sort settings are saved to the playlists file, so they are persistent.
Searching is implemented by appending the query criteria generated from the search text to the query. Browsing is implemented by using the base query model (or a query model using the query generated from the search text, there is some) as the input to a
RB.LibraryBrowser
.If the user has not set a sort order as part of the playlist definition, the entry view columns are made clickable to allow the user to sort the results.
- classmethod new(shell, name, local)¶
- Parameters:
- Returns:
the new source
- Return type:
Creates a new automatic playlist source, initially with an empty query.
- classmethod new_from_xml(shell, name, node)¶
- Parameters:
name (
str
) – playlist namenode (
libxml2.NodePtr
) – libxml node containing the playlist
- Returns:
the new source
- Return type:
Creates a new auto playlist source by parsing an XML-encoded query.