2011-11-12, 14:25
grywnn Wrote:Me again
Bug?
When i use Playlist.Swap and the position of the currently playing item changes, Player.getProperties doesn't reflect the changes afterwards.
Example:
Currently playing item 2 of playlist 0.
Now i swap item 1 and 2.
The item formerly known as item 2 continues to play, but is now on position 1.
But Player.getProperties will still return position 2.
This goes as far that even the music playlist on XBMCs screen reflects the swap, but highlights the wrong track.
Hi grywnn,
This has been discussed before but I haven't submitted a bug ticket for it yet. You can if you like.
jasonvp Wrote:I'm trying to use "Playlist.Swap" (in a similar way to "Move item" in the Context Menu) to move the currently playing song to another position. The problem is if say the currently playing song is at "position:6" and is moved to "position:0" the song moves correctly but the Playlist Position stays the same i.e. "position:6" instead of "position:0" (this is true in the GUI and "Player.GetProperties" results) so the next song to play is "position:7" instead of "position:1".
The reason I use this is because when a Playlist is active and I use "Player.Shuffle" I want the currently playing song to go to "position":0 like it should.
Is this a bug or should there be a "Playlist.MoveItem" method added as well?
http://forum.xbmc.org/showthread.php?tid=68263&page=138
Cheers
Jason