summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/profiler/vdrDVBProfiler/Makefile4
-rw-r--r--plugins/provider/vdrProvider/vdrProvider.cpp15
2 files changed, 14 insertions, 5 deletions
diff --git a/plugins/profiler/vdrDVBProfiler/Makefile b/plugins/profiler/vdrDVBProfiler/Makefile
index e779d3d..7ff813f 100644
--- a/plugins/profiler/vdrDVBProfiler/Makefile
+++ b/plugins/profiler/vdrDVBProfiler/Makefile
@@ -20,7 +20,7 @@ CXX ?= g++
CXXFLAGS ?= -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
UPNPDIR ?= ../../..
-VDRLIBDIR = $(UPNPDIR)/../../lib
+VDRLIBDIR ?= $(UPNPDIR)/../../lib
APIVERSION = $(shell sed -ne '/define UPNPPLUGIN_VERSION/s/^.*"\(.*\)".*$$/\1/p' $(UPNPDIR)/include/plugin.h)
@@ -48,7 +48,7 @@ $(DEPFILE): Makefile
-include $(DEPFILE)
-libupnp-$(PROFILE)-provider.so: $(OBJS)
+libupnp-$(PROFILE)-profiler.so: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) $(LIBS) -o $@
@cp --remove-destination $@ $@.$(APIVERSION)
diff --git a/plugins/provider/vdrProvider/vdrProvider.cpp b/plugins/provider/vdrProvider/vdrProvider.cpp
index fa7a32b..b98568f 100644
--- a/plugins/provider/vdrProvider/vdrProvider.cpp
+++ b/plugins/provider/vdrProvider/vdrProvider.cpp
@@ -15,6 +15,8 @@
#include <tools.h>
#include <vdr/thread.h>
#include <iostream>
+#include <pwd.h>
+#include <unistd.h>
using namespace std;
@@ -93,6 +95,16 @@ public:
metadata.SetProperty(cMetadata::Property(property::object::KEY_TITLE, string("VDR Live-TV")));
metadata.SetProperty(cMetadata::Property("dlna:containerType", string("Tuner_1_0")));
+ struct passwd *pw;
+ if((pw = getpwuid(getuid())) == NULL){
+ metadata.SetProperty(cMetadata::Property(property::object::KEY_CREATOR, string("Klaus Schmidinger")));
+ } else {
+ string name(pw->pw_gecos); name = name.substr(0,name.find(",,,",0));
+ metadata.SetProperty(cMetadata::Property(property::object::KEY_CREATOR, name));
+ }
+
+ metadata.SetProperty(cMetadata::Property(property::object::KEY_DESCRIPTION, string("Watch Live-TV")));
+
return true;
}
@@ -116,8 +128,6 @@ public:
virtual void Action(){
- dsyslog("VdrProvider\tStarting vdrProvider thread");
-
const cSchedules* Schedules;
long now = 0;
bool modified = false;
@@ -151,7 +161,6 @@ public:
sleep(2);
}
- dsyslog("VdrProvider\tStopping vdrProvider thread");
}
};