diff options
-rw-r--r-- | HISTORY | 8 | ||||
-rw-r--r-- | displaychannel.c | 10 | ||||
-rw-r--r-- | menudetailview.c | 12 | ||||
-rw-r--r-- | menudetailview.h | 2 | ||||
-rw-r--r-- | menuitem.c | 8 | ||||
-rw-r--r-- | menuitem.h | 2 | ||||
-rw-r--r-- | services/tvscraper.h (renamed from services/tvscrapper.h) | 12 | ||||
-rw-r--r-- | textwindow.c | 6 | ||||
-rw-r--r-- | textwindow.h | 2 |
9 files changed, 34 insertions, 28 deletions
@@ -221,5 +221,9 @@ Version 0.1.2 - Fixed a bug if switching to a invalid channel Version 0.1.3 -- Added TVScrapper support, if TVScrapper is used scrapped images are - displayed in various EPG views +- Added TVScraper support, if TVScraper is used scraped images are + displayed in various EPG views + +Version 0.1.4 +- changed service interface for tvscraper +- fixed an possible uninitialised variable in recordings menu diff --git a/displaychannel.c b/displaychannel.c index f0af9ac..ce04d3f 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -2,7 +2,7 @@ #include "symbols/dolbydigital.xpm" #include "displaychannel.h" -#include "services/tvscrapper.h" +#include "services/tvscraper.h" cNopacityDisplayChannel::cNopacityDisplayChannel(bool WithInfo) { if (firstDisplay) { @@ -689,11 +689,11 @@ void cNopacityDisplayChannel::DrawPoster(const cEvent *event) { osd->DestroyPixmap(pixmapPoster); pixmapPoster = NULL; } - static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper"); - if (pTVScrapper) { - TVScrapperGetPosterOrBanner call; + static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper"); + if (pTVScraper) { + TVScraperGetPosterOrBanner call; call.event = event; - if (pTVScrapper->Service("TVScrapperGetPosterOrBanner", &call)) { + if (pTVScraper->Service("TVScraperGetPosterOrBanner", &call)) { int mediaWidth = 0; int mediaHeight = 0; if (call.type == typeSeries) { diff --git a/menudetailview.c b/menudetailview.c index 2f5af0c..ff79e25 100644 --- a/menudetailview.c +++ b/menudetailview.c @@ -290,11 +290,11 @@ void cNopacityMenuDetailEventView::SetFonts(void) { void cNopacityMenuDetailEventView::SetContent(void) { if (event) { - static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper"); - if (pTVScrapper) { + static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper"); + if (pTVScraper) { mediaInfo.event = event; mediaInfo.isRecording = false; - if (pTVScrapper->Service("TVScrapperGetFullInformation", &mediaInfo)) { + if (pTVScraper->Service("TVScraperGetFullInformation", &mediaInfo)) { hasAdditionalMedia = true; } } @@ -603,11 +603,11 @@ void cNopacityMenuDetailRecordingView::SetContent(void) { if (recording) { const cEvent *event = info->GetEvent(); if (event) { - static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper"); - if (pTVScrapper) { + static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper"); + if (pTVScraper) { mediaInfo.event = event; mediaInfo.isRecording = true; - if (pTVScrapper->Service("TVScrapperGetFullInformation", &mediaInfo)) { + if (pTVScraper->Service("TVScraperGetFullInformation", &mediaInfo)) { hasAdditionalMedia = true; } } diff --git a/menudetailview.h b/menudetailview.h index 4f30759..80df2d7 100644 --- a/menudetailview.h +++ b/menudetailview.h @@ -26,7 +26,7 @@ protected: cPixmap *pixmapLogo; cPixmap *pixmapContent; cPixmap *pixmapPoster; - TVScrapperGetFullInformation mediaInfo; + TVScraperGetFullInformation mediaInfo; bool hasAdditionalMedia; void DrawTextWrapper(cTextWrapper *wrapper, int top); int HeightActorPics(void); @@ -917,6 +917,8 @@ cNopacityRecordingMenuItem::cNopacityRecordingMenuItem(cOsd *osd, const cRecordi this->Total = Total; this->New = New; this->vidWin = vidWin; + posterWidth = 0; + posterHeight = 0; } cNopacityRecordingMenuItem::~cNopacityRecordingMenuItem(void) { @@ -964,11 +966,11 @@ void cNopacityRecordingMenuItem::SetPoster(void) { const cRecordingInfo *info = Recording->Info(); if (info) { const cEvent *event = info->GetEvent(); - static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper"); - if (pTVScrapper && event) { + static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper"); + if (pTVScraper && event) { poster.event = event; poster.isRecording = true; - if (pTVScrapper->Service("TVScrapperGetPoster", &poster)) { + if (pTVScraper->Service("TVScraperGetPoster", &poster)) { hasPoster = true; int posterWidthOrig = poster.media.width; int posterHeightOrig = poster.media.height; @@ -157,7 +157,7 @@ private: bool isFolder; bool hasPoster; int posterWidth, posterHeight; - TVScrapperGetPoster poster; + TVScraperGetPoster poster; int Level, Total, New; cRect *vidWin; std::string strRecName; diff --git a/services/tvscrapper.h b/services/tvscraper.h index 5541608..fc278ad 100644 --- a/services/tvscrapper.h +++ b/services/tvscraper.h @@ -16,8 +16,8 @@ struct tvActor { tvMedia thumb; }; -// Data structure for service "TVScrapper-GetPosterOrBanner" -struct TVScrapperGetPosterOrBanner +// Data structure for service "TVScraper-GetPosterOrBanner" +struct TVScraperGetPosterOrBanner { // in const cEvent *event; // search image for this event @@ -26,8 +26,8 @@ struct TVScrapperGetPosterOrBanner tvMedia media; //banner or poster }; -// Data structure for service "TVScrapper-GetPoster" -struct TVScrapperGetPoster +// Data structure for service "TVScraper-GetPoster" +struct TVScraperGetPoster { // in const cEvent *event; // search image for this event @@ -37,11 +37,11 @@ struct TVScrapperGetPoster }; -/* Data structure for service "TVScrapper-GetFullEPGInformation" +/* Data structure for service "TVScraper-GetFullEPGInformation" if type == typeMovie a poster and a fanart image is delivered if type == typeSeries a banner and up to three posters and fanarts are delivered */ -struct TVScrapperGetFullInformation +struct TVScraperGetFullInformation { // in const cEvent *event; // search all media for this event diff --git a/textwindow.c b/textwindow.c index 013f19d..09d3da7 100644 --- a/textwindow.c +++ b/textwindow.c @@ -34,11 +34,11 @@ cNopacityTextWindow::~cNopacityTextWindow(void) { } void cNopacityTextWindow::SetPoster(const cEvent *event, bool isRecording) { - static cPlugin *pTVScrapper = cPluginManager::GetPlugin("tvscrapper"); - if (pTVScrapper && event) { + static cPlugin *pTVScraper = cPluginManager::GetPlugin("tvscraper"); + if (pTVScraper && event) { poster.event = event; poster.isRecording = isRecording; - if (pTVScrapper->Service("TVScrapperGetPoster", &poster)) { + if (pTVScraper->Service("TVScraperGetPoster", &poster)) { hasPoster = true; int posterWidthOrig = poster.media.width; int posterHeightOrig = poster.media.height; diff --git a/textwindow.h b/textwindow.h index e499553..0fe1a9e 100644 --- a/textwindow.h +++ b/textwindow.h @@ -17,7 +17,7 @@ private: bool drawTextTall; bool drawTextFull; bool hasPoster; - TVScrapperGetPoster poster; + TVScraperGetPoster poster; int posterWidth, posterHeight; bool SetTextScroller(int border, int left); void CreatePixmap(void); |