diff options
author | spiff <spiff@xbmc.org> | 2012-03-29 22:58:37 +0200 |
---|---|---|
committer | spiff <spiff@xbmc.org> | 2012-04-13 17:13:40 +0200 |
commit | 373f3a60ea0ebcecd539c235307638478c9e50b5 (patch) | |
tree | 94a18dd304c0c50da8e6721d0e237929972ccd93 | |
parent | 2293aae80b83466221565250f02976e4cd5414af (diff) |
added: <language> field to xbmc.metadata extension point
allows specifying the language(s) of the content the add-on provides
-rw-r--r-- | xbmc/addons/Addon.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/addons/Addon.cpp b/xbmc/addons/Addon.cpp index 095c4a2641..bc3fc91377 100644 --- a/xbmc/addons/Addon.cpp +++ b/xbmc/addons/Addon.cpp @@ -151,6 +151,10 @@ AddonProps::AddonProps(const cp_extension_t *ext) description = CAddonMgr::Get().GetTranslatedString(metadata->configuration, "description"); disclaimer = CAddonMgr::Get().GetTranslatedString(metadata->configuration, "disclaimer"); license = CAddonMgr::Get().GetExtValue(metadata->configuration, "license"); + CStdString language; + language = CAddonMgr::Get().GetExtValue(metadata->configuration, "language"); + if (!language.IsEmpty()) + extrainfo.insert(make_pair("language",language)); broken = CAddonMgr::Get().GetExtValue(metadata->configuration, "broken"); EMPTY_IF("nofanart",fanart) EMPTY_IF("noicon",icon) |