diff options
author | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-06-01 20:21:04 +0000 |
---|---|---|
committer | Sascha Volkenandt <sascha (at) akv-soft (dot) de> | 2007-06-01 20:21:04 +0000 |
commit | 4781a18ce05be3fcef111611d07a655acc0cc334 (patch) | |
tree | 373ced5327a676b60869a1120bb17c9c73b901c4 /epgsearch.cpp | |
parent | 883be2c8cade7d68dc743c17bedda6f675a787ba (diff) | |
download | vdr-plugin-live-4781a18ce05be3fcef111611d07a655acc0cc334.tar.gz vdr-plugin-live-4781a18ce05be3fcef111611d07a655acc0cc334.tar.bz2 |
- moved to uniform features detector
Diffstat (limited to 'epgsearch.cpp')
-rw-r--r-- | epgsearch.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/epgsearch.cpp b/epgsearch.cpp index 468e0a7..cd56605 100644 --- a/epgsearch.cpp +++ b/epgsearch.cpp @@ -6,6 +6,7 @@ #include "epgsearch/services.h" #include "epgsearch.h" #include "exception.h" +#include "livefeatures.h" #include "tools.h" namespace vdrlive { @@ -25,12 +26,14 @@ bool operator<( SearchTimer const& left, SearchTimer const& right ) bool CheckEpgsearchVersion() { - cPlugin* epgsearch = cPluginManager::GetPlugin("epgsearch"); - if (!epgsearch) return false; - char minVersion[] = "0.9.22"; - if (string(epgsearch->Version()) < string(minVersion)) - throw HtmlError( tr("Required minimum version of epgsearch: ") + string(minVersion)); - return true; + /* @winni: Falls Du an der Versionsnummer Anpassungen vornehmen willst, mach das bitte in livefeatures.h ganz unten. Danke */ + Features< features::epgsearch >& f = LiveFeatures< features::epgsearch >(); + if ( f.Loaded() ) { + if ( !f.Recent() ) + throw HtmlError( tr("Required minimum version of epgsearch: ") + string( f.MinVersion() )); + return true; + } + return false; } SearchTimer::SearchTimer() |