diff --git a/resources/lib/Functions.py b/resources/lib/Functions.py index a1eda84..1033ca6 100644 --- a/resources/lib/Functions.py +++ b/resources/lib/Functions.py @@ -718,6 +718,14 @@ def getContent(url, pluginhandle): printDebug("== ENTER: getContent ==") printDebug("URL: " + str(url)) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_SORT_TITLE_IGNORE_THE) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_YEAR) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_GENRE) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_RATING) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_UNSORTED) + xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_NONE) + WINDOW = xbmcgui.Window(10000) WINDOW.setProperty("MBConContent", "true") @@ -750,13 +758,7 @@ def getContent(url, pluginhandle): xbmcplugin.endOfDirectory(pluginhandle, cacheToDisc=False) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_LABEL) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_SORT_TITLE_IGNORE_THE) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_YEAR) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_GENRE) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_VIDEO_RATING) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_UNSORTED) - xbmcplugin.addSortMethod(pluginhandle, xbmcplugin.SORT_METHOD_NONE) + if(progress != None): progress.update(100, __language__(30125))