diff options
author | vdrfan <vdrfan@svn> | 2009-10-19 15:55:22 +0000 |
---|---|---|
committer | vdrfan <vdrfan@svn> | 2009-10-19 15:55:22 +0000 |
commit | 6dee06009e268c7445699ab445c2bb02b39eb981 (patch) | |
tree | 811d748bdafb74871bb9713cd70037da15236a3e | |
parent | c3c1fb9aa59cc34fb5187ca8a6877b672b2cee2b (diff) |
added: missing video infolabels to pythons setInfo()
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@23853 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/lib/libPython/xbmcmodule/listitem.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/xbmc/lib/libPython/xbmcmodule/listitem.cpp b/xbmc/lib/libPython/xbmcmodule/listitem.cpp index 83e72bfe98..b3acd9fcb1 100644 --- a/xbmc/lib/libPython/xbmcmodule/listitem.cpp +++ b/xbmc/lib/libPython/xbmcmodule/listitem.cpp @@ -375,13 +375,16 @@ namespace PYXBMC while (PyDict_Next(pInfoLabels, (Py_ssize_t*)&pos, &key, &value)) { if (strcmpi(cType, "video") == 0) { - // TODO: add the rest of the infolabels if (strcmpi(PyString_AsString(key), "year") == 0) self->item->GetVideoInfoTag()->m_iYear = PyInt_AsLong(value); else if (strcmpi(PyString_AsString(key), "episode") == 0) self->item->GetVideoInfoTag()->m_iEpisode = PyInt_AsLong(value); else if (strcmpi(PyString_AsString(key), "season") == 0) self->item->GetVideoInfoTag()->m_iSeason = PyInt_AsLong(value); + else if (strcmpi(PyString_AsString(key), "top250") == 0) + self->item->GetVideoInfoTag()->m_iTop250 = PyInt_AsLong(value); + else if (strcmpi(PyString_AsString(key), "tracknumber") == 0) + self->item->GetVideoInfoTag()->m_iTrack = PyInt_AsLong(value); else if (strcmpi(PyString_AsString(key), "count") == 0) self->item->m_iprogramCount = PyInt_AsLong(value); else if (strcmpi(PyString_AsString(key), "rating") == 0) @@ -446,6 +449,18 @@ namespace PYXBMC self->item->GetVideoInfoTag()->m_strShowTitle = tmp; else if (strcmpi(PyString_AsString(key), "premiered") == 0) self->item->GetVideoInfoTag()->m_strPremiered = tmp; + else if (strcmpi(PyString_AsString(key), "status") == 0) + self->item->GetVideoInfoTag()->m_strStatus = tmp; + else if (strcmpi(PyString_AsString(key), "code") == 0) + self->item->GetVideoInfoTag()->m_strProductionCode = tmp; + else if (strcmpi(PyString_AsString(key), "aired") == 0) + self->item->GetVideoInfoTag()->m_strFirstAired = tmp; + else if (strcmpi(PyString_AsString(key), "credits") == 0) + self->item->GetVideoInfoTag()->m_strWritingCredits = tmp; + else if (strcmpi(PyString_AsString(key), "lastplayed") == 0) + self->item->GetVideoInfoTag()->m_lastPlayed = tmp; + else if (strcmpi(PyString_AsString(key), "album") == 0) + self->item->GetVideoInfoTag()->m_strAlbum = tmp; else if (strcmpi(PyString_AsString(key), "votes") == 0) self->item->GetVideoInfoTag()->m_strVotes = tmp; else if (strcmpi(PyString_AsString(key), "trailer") == 0) |