summaryrefslogtreecommitdiff
path: root/eepg.c
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-10-27 21:38:46 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2011-10-27 21:43:40 +0200
commit729dfd3b736f3435129b318657765af0057636d1 (patch)
treec0c22359d00eb28eb27b5ae40194b6291999fb00 /eepg.c
parentdc9d631a4f9f8ebdf59bbff1729ebc18763d87fb (diff)
downloadvdr-plugin-eepg-729dfd3b736f3435129b318657765af0057636d1.tar.gz
vdr-plugin-eepg-729dfd3b736f3435129b318657765af0057636d1.tar.bz2
corect episode and time info
Diffstat (limited to 'eepg.c')
-rw-r--r--eepg.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/eepg.c b/eepg.c
index 0c75106..ce44960 100644
--- a/eepg.c
+++ b/eepg.c
@@ -3218,12 +3218,16 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
}
break;
case SI::DishSeriesDescriptorTag: {
- if (d->getLength() == 4) {
+ if (d->getLength() == 10) {
+ //LogD(2, prep("DishSeriesDescriptorTag: %s)"), (const char*) d->getData().getData());
if (!DishEventDescriptor) {
DishEventDescriptor = new SI::DishDescriptor();
}
DishEventDescriptor->setEpisodeInfo(d->getData());
}
+// else {
+// LogD(2, prep("DishSeriesDescriptorTag length: %d)"), d->getLength());
+// }
}
break;
default:
@@ -3281,7 +3285,9 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
free(tmp);
fmt = "%s";
- if (0 != strcmp(DishEventDescriptor->getDescription(),"") && (0 != strcmp(DishEventDescriptor->getRating(),"") || 0 != strcmp(DishEventDescriptor->getStarRating(),""))) {
+ if (0 != strcmp(DishEventDescriptor->getDescription(),"")
+ && (0 != strcmp(DishEventDescriptor->getRating(),"")
+ || 0 != strcmp(DishEventDescriptor->getStarRating(),""))) {
fmt += "\nRating: ";
}
fmt += "%s %s";
@@ -3290,13 +3296,17 @@ cEIT2::cEIT2 (cSchedules * Schedules, int Source, u_char Tid, const u_char * Dat
}
fmt += "%s %s";
time_t orgAirDate = DishEventDescriptor->getOriginalAirDate();
- fmt += orgAirDate == 0 ? "%s" : " Original Air Date: ";
+ fmt += orgAirDate == 0 ? "%s" : " Original Air Date: %s";
+ LogD(3, prep("DishSeriesDescriptorTag2: %s %s %d %s)"), DishEventDescriptor->getProgramId()
+ , DishEventDescriptor->getSeriesId()
+ , orgAirDate
+ , orgAirDate == 0 ? "" : asctime(localtime(&orgAirDate)));
Asprintf (&tmp, fmt.c_str(), DishEventDescriptor->getDescription()
, DishEventDescriptor->getRating()
, DishEventDescriptor->getStarRating()
, DishEventDescriptor->getProgramId()
, DishEventDescriptor->getSeriesId()
- , DishEventDescriptor->getOriginalAirDate() == 0 ? "" : ctime (&orgAirDate));
+ , orgAirDate == 0 ? "" : asctime(localtime(&orgAirDate)));
pEvent->SetDescription(tmp);
free(tmp);