Setting the current playlist position - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Setting the current playlist position (/showthread.php?tid=82841) |
Setting the current playlist position - ErlendSB - 2010-10-09 I'm unsure if this is the right forum for my question, but consider this scenario: I start playing a song, resulting in the entire album being queued in the music playlist. Through a script I then clear the playlist, like this: Code: xbmc.PlayList(0).clear() Code: xbmc.PlayList(0).add(music path) While executing this script the music is still playing. If I now press "Skip", the player does not start playing from position 2 in the playlist, It jumps ahead a few songs. Does anyone know why this might occur? Is there maybe a way of resetting the players playlist position? However, if at the end of my script, I start the player like this: Code: xbmc.Player().play(xbmc.PlayList(0)) But this will restart the song currently playing. Hopefully some of you will enlighten me. Thanks, Erlend |