Re: [Rhythmbox-devel] I'm stuck at getting the playlists' names in python , some help ?



Thank you very much, that solves it !

On 02/14/2014 05:38 PM, Donagh Horgan wrote:
Hi Petko,

Try using this:

pl_man = shell.props.playlist_manager
playlist_names = [playlist.props.name for playlist in pl_man.get_playlists()]

All the best,
Donagh


On Fri, Feb 14, 2014 at 2:39 PM, Petko Ditchev <pditchev gmail com> wrote:
import rb
import ... some other stuff

pl_man = shell.props.playlist_manager
pl_man.get_playlist_names()

and I get (true, ...gibberish...)
the second part of the result is probably a pointer to the list of names but I cant figure out how to use it in python ?!

Petko
_______________________________________________
rhythmbox-devel mailing list
rhythmbox-devel gnome org
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel




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