Posts: 346
Joined: Jul 2006
Reputation:
2
Very good idea Dan! It'll be a nice workaround while the auto-resume is changed in XBMC...
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
auto-resume was "changed" in r21341
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
this is what happens when you don't express yourself precisely enough. yes, that can be done, i just figured it was not what you wanted since everybody said auto resume.
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
2009-07-03, 12:30
(This post was last modified: 2009-07-03, 12:33 by spiff.)
yes, that's the way i'd do it, although i'd use blank (no), resume (yes) and ask. it needs some code refactoring, but surely doable. no idea when i will have the time to look at it again though
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Current coordinates can be fetched either from the window class or by grabbing the focused control and then going from there. Take a look at how the context menu does it (eg context menu from favourites dialog for example). I know the mediawindow's context menu gets info from the current list.
As for where to put the resume stuff, that's a bit tricky. Perhaps the best option would be to do an IsVideo() then call a static function in GUIWindowVideoBase? That way OnResumeItem() can hopefully be hooked up to use the same call.
Cheers,
Jonathan
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
changed the script, should improve speed for recently added music.