mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 13:01:48 +00:00
Added tvscraper support
This commit is contained in:
@@ -59,6 +59,14 @@ bool cImageLoader::LoadAdditionalEPGImage(cString name) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cImageLoader::LoadPoster(const char *poster, int width, int height) {
|
||||
if (LoadImage(poster)) {
|
||||
buffer.sample(Geometry(width, height));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool cImageLoader::LoadIcon(const char *cIcon, int size) {
|
||||
if (size==0)
|
||||
return false;
|
||||
@@ -130,3 +138,14 @@ bool cImageLoader::LoadImage(cString FileName, cString Path, cString Extension)
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool cImageLoader::LoadImage(const char *fullpath) {
|
||||
try {
|
||||
//dsyslog("tvguide: trying to load: %s", fullpath);
|
||||
buffer.read(fullpath);
|
||||
//dsyslog("tvguide: %s sucessfully loaded", fullpath);
|
||||
} catch (...) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
Reference in New Issue
Block a user