fixed bug that hasposter is only true if poster really exists

This commit is contained in:
louis
2014-10-26 08:47:24 +01:00
parent 2129df34cb
commit e84c60f48a
5 changed files with 9 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ void cDisplayMenuItemCurrentView::SetScraperPoster(const cEvent *event, const cR
call.event = event;
call.recording = recording;
if (pScraper->Service("GetPoster", &call)) {
intTokens.insert(pair<string,int>("hasposter", true));
intTokens.insert(pair<string,int>("hasposter", FileExists(call.poster.path)));
intTokens.insert(pair<string,int>("posterwidth", call.poster.width));
intTokens.insert(pair<string,int>("posterheight", call.poster.height));
stringTokens.insert(pair<string,string>("posterpath", call.poster.path));

View File

@@ -706,7 +706,7 @@ void cDisplayMenuItemRecordingView::SetTokens(void) {
call.event = NULL;
call.recording = usedRecording;
if (pScraper->Service("GetPosterThumb", &call)) {
intTokens.insert(pair<string,int>("hasposterthumbnail", true));
intTokens.insert(pair<string,int>("hasposterthumbnail", FileExists(call.poster.path)));
intTokens.insert(pair<string,int>("thumbnailbwidth", call.poster.width));
intTokens.insert(pair<string,int>("thumbnailheight", call.poster.height));
stringTokens.insert(pair<string,string>("thumbnailpath", call.poster.path));