aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspiff_ <spiff_@svn>2010-11-06 14:50:12 +0000
committerspiff_ <spiff_@svn>2010-11-06 14:50:12 +0000
commit1b28ddfcd8a2fe2bc669e15bfe6423992bdb68b4 (patch)
tree799e91ccf00dd54fa22cb71d0a32aa6a69e6e5bd
parent864c8694fcfc4abb92dfcef554942857a5e335d0 (diff)
added: allow plugins to set the specialsort property. use setProperty('specialsort','top') or setProperty('specialsort','bottom')
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35181 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/lib/libPython/xbmcmodule/listitem.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/xbmc/lib/libPython/xbmcmodule/listitem.cpp b/xbmc/lib/libPython/xbmcmodule/listitem.cpp
index d802c51fd3..035deb011a 100644
--- a/xbmc/lib/libPython/xbmcmodule/listitem.cpp
+++ b/xbmc/lib/libPython/xbmcmodule/listitem.cpp
@@ -663,6 +663,13 @@ namespace PYXBMC
{ // special case for mime type - don't actually stored in a property,
self->item->SetMimeType(uText);
}
+ else if (lowerKey.CompareNoCase("specialsort") == 0)
+ {
+ if (uText == "bottom")
+ self->item->SetSpecialSort(SORT_ON_BOTTOM);
+ else if (uText == "top")
+ self->item->SetSpecialSort(SORT_ON_TOP);
+ }
else
self->item->SetProperty(lowerKey.ToLower(), uText.c_str());
PyXBMCGUIUnlock();