Retain queue (playlist) state between runs
#4
(2020-06-19, 21:55)Lunatixz Wrote: FYI easy to accomplish this via python script

That's awesome news. But:
  1. I'd still be keen to see it as a core feature, as I believe it's a true value add to Kodi, not some idiosynchratic personal feature (which is what I use scripts for).

  2. In the mean time I'd love to write the script but am fairly green (and so it's costly in research and experimentation) so if you think it easy, could you maybe either provide some key pointers or write one? For example:
    1. I'd need a hook into Queue changes (so a function runs every time the queue changes, has something added to it or removed or moved around)
    2. A hook into playing track changes (so a function runs whenever a new track starts playing)
    3. A hook into the bootstrap (so a function can run when Kodi starts)
    4. A kodi-canonical persistent store, as in what is the norm in kodi? Write the state out to a file in ~/.kodi, or does kodi offer a database to which a table can be added to capture queue state?
Those all demand considerable research and proof of concept testing before I'd have something running and that sets me up for failure (being distracted and onto another project before it's don ;-).  That said, much of the doc on kodi scripting is pretty good and helpful. I'm really just speaking to your observation that it's pretty easy, where from my perspective it looks like a job that could consume a few evenings of mine. But as stated, I'd enjoy a script so I have the feature now, but I still feel it's an important value add to the kodi core code base, because it's just the norm for music players and Kodi makes a great jukebox bar a few little rough edges like this.
Reply


Messages In This Thread
RE: Retain queue (playlist) state between runs - by ThumbOne - 2020-06-20, 02:57


Logout Mark Read Team Forum Stats Members Help
Retain queue (playlist) state between runs0
This forum uses Lukasz Tkacz MyBB addons.