Unable to grab the PlayOrder from Python
Submitted by fos..@..il.com
Link to original bug (#728067)
Description
I initially posted this on the mailing list...
Having looked at this further, I've convinced myself that it is impossible to actually find the playorder class for the playing source. I'm hoping I'm wrong.
The shell_player has a string play_order "linear", "shuffle" etc property
You cannot actually translate this to obtain the actual play_order class.
Looking in rb_shell_player.c - the play_order classes are all initialised and hashed - but there doesnt appear to be a method to get that hashed play_order instance from python. Please can a method be added to rb_shell_player called "get_play_order" to obtain the playorder instance?
The reason for the request is that I would like to write a plugin to obtain the next proposed song that would be played. In fact - I'm hoping that the playorder actually gives me the next few songs to be played - I want to implement something like the iTunes "up next" functionality giving the user the ability to see what next few songs will be played. The shuffle makes it currently impossible to see the next few songs directly from the querymodel of the playing source.
Version: 3.0.x