diff options
author | Christian <zerov83@gmail.com> | 2016-02-22 21:01:12 +0100 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-02-22 21:01:12 +0100 |
commit | 662171f45281deacdf2db255909be11ec869122c (patch) | |
tree | 07615f863ec2404a9f230209fc60ba9f1759b07f | |
parent | 6b8c8aec4fe01136b3092981e4a9c5d486d098df (diff) | |
download | vdr-plugin-plex-662171f45281deacdf2db255909be11ec869122c.tar.gz vdr-plugin-plex-662171f45281deacdf2db255909be11ec869122c.tar.bz2 |
Fixed "time"0.3.0
added looptokens
-rw-r--r-- | Directory.cpp | 9 | ||||
-rw-r--r-- | PVideo.cpp | 9 | ||||
-rw-r--r-- | plex.cpp | 2 | ||||
-rw-r--r-- | plex.h | 2 |
4 files changed, 16 insertions, 6 deletions
diff --git a/Directory.cpp b/Directory.cpp index e2b1072..100b830 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -99,7 +99,12 @@ void Directory::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bo if(m_eType == MediaType::UNDEF || m_eType == MediaType::MOVIE || m_eType == MediaType::PHOTO) { grid->AddIntToken((int)(eTokenGridInt::isdirectory), true); } - /* + + vector<int> loopInfo; + loopInfo.push_back(m_vRole.size()); + loopInfo.push_back(m_vGenre.size()); + grid->SetLoop(loopInfo); + int actloopIndex = grid->GetLoopIndex("roles"); int i = 0; for(auto it = m_vRole.begin(); it != m_vRole.end(); it++) { @@ -113,7 +118,7 @@ void Directory::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bo grid->AddLoopToken(genloopIndex, i, (int)(eTokenGridGenresLst::genres), it->c_str()); i++; } -*/ + if(m_eType == MediaType::SHOW) { grid->AddIntToken((int)(eTokenGridInt::isshow), true); grid->AddStringToken((int)(eTokenGridStr::summary), m_sSummary.c_str()); @@ -265,7 +265,12 @@ void Video::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bool c if(m_tType == MediaType::MOVIE || m_tType == MediaType::CLIP) { grid->AddIntToken((int)(eTokenGridInt::ismovie), true); } -/* + + vector<int> loopInfo; + loopInfo.push_back(m_vRole.size()); + loopInfo.push_back(m_vGenre.size()); + grid->SetLoop(loopInfo); + int actloopIndex = grid->GetLoopIndex("roles"); int i = 0; for(auto it = m_vRole.begin(); it != m_vRole.end(); it++) { @@ -279,7 +284,7 @@ void Video::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bool c grid->AddLoopToken(genloopIndex, i, (int)(eTokenGridGenresLst::genres), it->c_str()); i++; } - */ + grid->AddIntToken((int)(eTokenGridInt::originallyAvailableYear), m_tOriginallyAvailableAt.year()); grid->AddIntToken((int)(eTokenGridInt::originallyAvailableMonth), m_tOriginallyAvailableAt.month()); grid->AddIntToken((int)(eTokenGridInt::originallyAvailableDay), m_tOriginallyAvailableAt.day()); @@ -90,7 +90,7 @@ bool cMyPlugin::Start(void) skindesignerapi::cTokenContainer *tkWatch = new skindesignerapi::cTokenContainer(); cPlexSdOsd::DefineTokens(eViewElementsRoot::watch, tkWatch); - m_pPlugStruct->RegisterViewElement((int)eViews::rootView, (int)eViewElementsRoot::watch, "watch", tkWatch); + m_pPlugStruct->RegisterViewElement((int)eViews::rootView, (int)eViewElementsRoot::watch, "time", tkWatch); skindesignerapi::cTokenContainer *tkMessage = new skindesignerapi::cTokenContainer(); cPlexSdOsd::DefineTokens(eViewElementsRoot::message, tkMessage); @@ -33,7 +33,7 @@ /// vdr-plugin version number. /// Makefile extracts the version number for generating the file name /// for the distribution archive. -static const char *const VERSION = "0.2.2" +static const char *const VERSION = "0.3.0" #ifdef GIT_REV "-GIT" GIT_REV #endif |