mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed missing epgname token in recmenu
This commit is contained in:
parent
1feae66df2
commit
b7d25009c0
@ -1409,7 +1409,6 @@ bool cLeMenuRecordings::Parse(bool forced) {
|
|||||||
|
|
||||||
char *recName = RecName(recording->Name(), level);
|
char *recName = RecName(recording->Name(), level);
|
||||||
tokenContainer->AddStringToken((int)eLeMenuRecordingsST::name, recName);
|
tokenContainer->AddStringToken((int)eLeMenuRecordingsST::name, recName);
|
||||||
delete[] recName;
|
|
||||||
|
|
||||||
const cRecording *usedRecording = recording;
|
const cRecording *usedRecording = recording;
|
||||||
|
|
||||||
@ -1458,9 +1457,17 @@ bool cLeMenuRecordings::Parse(bool forced) {
|
|||||||
|
|
||||||
const cEvent *event = NULL;
|
const cEvent *event = NULL;
|
||||||
const cRecordingInfo *info = usedRecording->Info();
|
const cRecordingInfo *info = usedRecording->Info();
|
||||||
if (!info) return true;
|
if (!info) {
|
||||||
|
delete[] recName;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
event = info->GetEvent();
|
event = info->GetEvent();
|
||||||
if (!event) return true;
|
if (!event) {
|
||||||
|
delete[] recName;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
tokenContainer->AddStringToken((int)eLeMenuRecordingsST::epgname, info->Title() ? info->Title() : recName);
|
||||||
|
delete[] recName;
|
||||||
|
|
||||||
cString recDate = event->GetDateString();
|
cString recDate = event->GetDateString();
|
||||||
cString recTime = event->GetTimeString();
|
cString recTime = event->GetTimeString();
|
||||||
@ -1694,6 +1701,7 @@ bool cCeMenuRecordings::Parse(bool forced) {
|
|||||||
event = info->GetEvent();
|
event = info->GetEvent();
|
||||||
if (!event) return true;
|
if (!event) return true;
|
||||||
|
|
||||||
|
tokenContainer->AddStringToken((int)eCeMenuRecordingsST::epgname, info->Title() ? info->Title() : buffer.c_str());
|
||||||
cString recDate = event->GetDateString();
|
cString recDate = event->GetDateString();
|
||||||
cString recTime = event->GetTimeString();
|
cString recTime = event->GetTimeString();
|
||||||
if (strstr(*recDate, "1970")) {
|
if (strstr(*recDate, "1970")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user