Added tvscraper support

This commit is contained in:
louis
2013-08-25 13:57:10 +02:00
parent c545f6b4cf
commit 9eabdcd209
13 changed files with 475 additions and 57 deletions

View File

@@ -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;
}