File epgsearch-vdr-2.2.patch of Package vdr-plugin-epgsearch

Index: b/uservars.h
===================================================================
--- a/uservars.h
+++ b/uservars.h
@@ -538,7 +538,11 @@ class cVideodirVar : public cInternalVar
     cVideodirVar() : cInternalVar("videodir") {}
     string Evaluate(const cEvent*, bool escapeStrings = false)
 	{
+#if APIVERSNUM >= 20200
+	    return cVideoDirectory::Name();
+#else
 	    return VideoDirectory;
+#endif
 	}
 };
 
openSUSE Build Service is sponsored by