index 089ca07..8cc6c1c 100644
--- a/xbmc/interfaces/legacy/InfoTagVideo.cpp
+++ b/xbmc/interfaces/legacy/InfoTagVideo.cpp
@@ -133,6 +133,11 @@ namespace XBMCAddon
return infoTag->m_strOriginalTitle;
}
+ String InfoTagVideo::getSortTitle()
+ {
+ return infoTag->m_strSortTitle;
+ }
+
String InfoTagVideo::getPremiered()
{
return infoTag->m_premiered.GetAsLocalizedDate();
diff --git a/xbmc/interfaces/legacy/InfoTagVideo.h b/xbmc/interfaces/legacy/InfoTagVideo.h
index e649e4e..3a5a95c 100644
--- a/xbmc/interfaces/legacy/InfoTagVideo.h
+++ b/xbmc/interfaces/legacy/InfoTagVideo.h
@@ -66,6 +66,7 @@ namespace XBMCAddon
*/
String getLastPlayed();
String getOriginalTitle();
+ String getSortTitle();
String getPremiered();
String getFirstAired();
};
diff --git a/xbmc/interfaces/legacy/ListItem.cpp b/xbmc/interfaces/legacy/ListItem.cpp
index b342ea3..0d4f197 100644
--- a/xbmc/interfaces/legacy/ListItem.cpp
+++ b/xbmc/interfaces/legacy/ListItem.cpp
@@ -336,6 +336,8 @@ namespace XBMCAddon
item->GetVideoInfoTag()->m_strTitle = value;
else if (key == "originaltitle")
item->GetVideoInfoTag()->m_strOriginalTitle = value;
+ else if (key == "sorttitle")
+ item->GetVideoInfoTag()->m_strSortTitle = value;
else if (key == "duration")
item->GetVideoInfoTag()->m_duration = CVideoInfoTag::GetDurationFromMinuteString(value);
else if (key == "studio")
diff --git a/xbmc/interfaces/legacy/ListItem.h b/xbmc/interfaces/legacy/ListItem.h
index 33d6740..793422b 100644
--- a/xbmc/interfaces/legacy/ListItem.h
+++ b/xbmc/interfaces/legacy/ListItem.h
@@ -179,6 +179,7 @@ namespace XBMCAddon
* plotoutline : string (Short Description)
* title : string (Big Fan)
* originaltitle : string (Big Fan)
+ * sorttitle : string (Big Fan)
* duration : string (3:18)
* studio : string (Warner Bros.)
* tagline : string (An awesome movie) - short description of movie
diff --git a/xbmc/interfaces/legacy/ModuleXbmcplugin.h b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
index 8d05f6a..92e6588 100644
--- a/xbmc/interfaces/legacy/ModuleXbmcplugin.h
+++ b/xbmc/interfaces/legacy/ModuleXbmcplugin.h
@@ -103,9 +103,10 @@ namespace XBMCAddon
* sortMethod : integer - number for sortmethod see FileItem.h.
* label2Mask : [opt] string - the label mask to use for the second label. Defaults to '%D'
* applies to: SORT_METHOD_NONE, SORT_METHOD_UNSORTED, SORT_METHOD_VIDEO_TITLE,
- * SORT_METHOD_TRACKNUM, SORT_METHOD_FILE, SORT_METHOD_TITLE
- * SORT_METHOD_TITLE_IGNORE_THE, SORT_METHOD_LABEL
- * SORT_METHOD_LABEL_IGNORE_THE
+ * SORT_METHOD_TRACKNUM, SORT_METHOD_FILE, SORT_METHOD_TITLE,
+ * SORT_METHOD_TITLE_IGNORE_THE, SORT_METHOD_LABEL,
+ * SORT_METHOD_LABEL_IGNORE_THE, SORT_METHOD_VIDEO_SORT_TITLE,
+ * SORT_METHOD_VIDEO_SORT_TITLE_IGNORE_THE
*
* example:
* - xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_TITLE)
@@ -214,6 +215,8 @@ namespace XBMCAddon
SWIG_CONSTANT(int,SORT_METHOD_PLAYLIST_ORDER);
SWIG_CONSTANT(int,SORT_METHOD_EPISODE);
SWIG_CONSTANT(int,SORT_METHOD_VIDEO_TITLE);
+ SWIG_CONSTANT(int,SORT_METHOD_VIDEO_SORT_TITLE);
+ SWIG_CONSTANT(int,SORT_METHOD_VIDEO_SORT_TITLE_IGNORE_THE);
SWIG_CONSTANT(int,SORT_METHOD_PRODUCTIONCODE);
SWIG_CONSTANT(int,SORT_METHOD_SONG_RATING);
SWIG_CONSTANT(int,SORT_METHOD_MPAA_RATING);