ccc7f468f6
UPnP/DLNA Plugin for Video Disk Recorder This Plugins extends the VDR with the possibility to act as an UPnP/DLNA Media Server (DMS). It will serve VDR's contents in the network to any UPnP-AV and DLNA capable devices. This still is an alpha version! WWW: http://upnp.vdr-developer.org/
23 lines
715 B
Text
23 lines
715 B
Text
--- a/database/metadata.cpp
|
|
+++ b/database/metadata.cpp
|
|
@@ -461,11 +471,20 @@ void cMediaDatabase::Action(){
|
|
time_t LastEPGUpdate = 0;
|
|
while(this->Running()){
|
|
|
|
+#ifndef WITHOUT_TV
|
|
if(cSchedules::Modified() >= LastEPGUpdate){
|
|
MESSAGE(VERBOSE_EPG_UPDATES, "Schedule changed. Updating...");
|
|
updateChannelEPG();
|
|
LastEPGUpdate = cSchedules::Modified();
|
|
}
|
|
+#endif
|
|
+#ifndef WITHOUT_RECORDS
|
|
+ int NotUsed;
|
|
+ if(Recordings.StateChanged(NotUsed)){
|
|
+ MESSAGE(VERBOSE_EPG_UPDATES, "Recordings changed. Updating...");
|
|
+ loadRecordings();
|
|
+ }
|
|
+#endif
|
|
|
|
cCondWait::SleepMs(60 * 1000); // sleep a minute
|
|
}
|