mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
fixed bug that hasposter is only true if poster really exists
This commit is contained in:
@@ -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));
|
||||
|
@@ -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));
|
||||
|
Reference in New Issue
Block a user