Re: [Rhythmbox-devel] determine the active Playlist



On Mon, May 17, 2010 at 3:02 PM, subscribe-life tut by <wistful tut by> wrote:
> Hi!
> I know python and want to write a rhytmbox plugin.
> I know how to choose a list of playlists but can not determine the active.
>
> How to determine the name of the active Playlist ?

You can get the playing source by calling the get_playing_source()
method of the RBShellPlayer object. In the python console, for
example:

>>> shell.props.shell_player.get_playing_source().props.name
'Music'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]