I'm using Aeon Nox with Advanced Launcher, and it's working really well far. However, since I'd consider myself slightly OCD, I've been banging my head trying to figure out a solution to a sorting issue I've run in to. What I'd like to do is sort titles like "Final Fantasy IX" after "Final Fantasy VIII". Unfortunately due to the naming, "VIII" comes after "IX". I would like to have some sort of 'sort name'. I spent a bit of time looking through launcher_plugin.py to see how hard it would be to add this functionality. Unfortunately, I haven't explored skinning or plugins for xbmc before, so I don't fully understand how sorting works with all the different pieces.
The simplest solution that I came up with involved just sorting on filenames--that way I could just name things like "Final Fantasy 9" and "Final Fantasy 8" and everything would sort fine (plus I'd still display the roman numerals as the title in xbmc). I tried adding
Code:
xbmcplugin.addSortMethod(handle=int( self._handle ), sortMethod=xbmcplugin.SORT_METHOD_FILE)
to the py file, and it made a "Sort by: File" show up in Aeon Nox; however it didn't actually sort anything, and I'm not sure why. I would greatly appreciate any assistance on how to add new sort methods to Advanced Launcher.
By the way, I was able to 'hack' the sorting in by adding
Code:
xbmcplugin.addSortMethod(handle=int( self._handle ), sortMethod=xbmcplugin.SORT_METHOD_UNSORTED)
and also changing the sort code in _get_roms(...) to
Code:
for key in sorted(roms, key= lambda x : os.path.basename(os.path.splitext(roms[x]["filename"])[0])):
This obviously isn't ideal though because once you change the sorting from "Sort by: Default" to anything else, you can never return to the original sorting without restarting xbmc (and thus calling _get_roms(...) again).
TLDR: I'm trying to find a way to add additional sort methods to Advanced Launcher, and I could definitely use some help!