Kodi Community Forum

Full Version: ActivateWindow to open Movies sorted by x?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, posted this in Windows forum (which I gather is the wrong forum!)

I have a menu item which runs ActivateWindow(Video,MovieTitles,return). This just brings up the movie list sorted by whatever it was last sorted by.

I want to create other menu items to bring up the movie list but with the sort method specified (e.g. by year/ascending, by date added/descending etc)

I have tried to make a script, but cannot seem to get Container.Setsortmethod working - nothing happens:

Code:
import xbmc

xbmc.executebuiltin("ActivateWindow(Videos,MovieTitles,return)")
xbmc.executebuiltin( "Container.SetSortMethod(17)" )