summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-12-21 18:02:38 +0100
committerhorchi <vdr@jwendel.de>2017-12-21 18:02:38 +0100
commit6c5b1d1729ddec6b4815e5f4115544e0c9f47ac3 (patch)
tree07ee8c7dbfeb6b74519a7ae376885012fd9df99d /recording.c
parentfc626c15ac0e98aeec57f92c0b5aa6072a752e2f (diff)
downloadvdr-plugin-epg2vdr-6c5b1d1729ddec6b4815e5f4115544e0c9f47ac3.tar.gz
vdr-plugin-epg2vdr-6c5b1d1729ddec6b4815e5f4115544e0c9f47ac3.tar.bz2
2017-12-21 version 1.1.76 (horchi)\n - change: backward compatibility to vdr 2.2.0 - second try\n - change: g++ 7 porting\n\n1.1.76
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index d22205c..04b620e 100644
--- a/recording.c
+++ b/recording.c
@@ -361,6 +361,7 @@ int cUpdate::updateRecordingTable(int fullReload)
int eventId = 0;
std::string channelId = "";
const char* description = "";
+ const char* longdescription = "";
const char* title = rec->Name();
const cRecordingInfo* recInfo = rec->Info();
int pathOffset = 0;
@@ -391,8 +392,21 @@ int cUpdate::updateRecordingTable(int fullReload)
description = recInfo->Description() ? recInfo->Description() : "";
channel = channels->GetByChannelID(recInfo->ChannelID());
- if (recInfo->Title()) title = recInfo->Title();
- if (recInfo->GetEvent()) eventId = recInfo->GetEvent()->EventID();
+ if (recInfo->Title())
+ title = recInfo->Title();
+
+ if (recInfo->GetEvent())
+ {
+ cXml xml;
+
+ eventId = recInfo->GetEvent()->EventID();
+
+ if (!isEmpty(recInfo->GetEvent()->Aux()) && xml.set(recInfo->GetEvent()->Aux()) == success)
+ {
+ if (XMLElement* e = xml.getElementByName("longdescription"))
+ longdescription = e->GetText();
+ }
+ }
}
fsk = isProtected(rec->FileName());
@@ -419,6 +433,9 @@ int cUpdate::updateRecordingTable(int fullReload)
recordingListDb->setValue("CHANNELID", channelId.c_str());
recordingListDb->setValue("FSK", fsk);
+ if (!isEmpty(longdescription))
+ recordingListDb->setValue("ORGDESCRIPTION", longdescription); // since 'LONGDESCRIPTION' already used for 'DESCRIPTION' :(
+
if (channel)
recordingListDb->setValue("CHANNELNAME", channel->Name());