mavit wrote:
>
>
> >
Code:
--------------------
> >
> Treat a blank availability end as never, not always
>
> The missing value seems to indicate a data quality problem at the BBCs
end, since its accompanied by an incorrect value for availability start.
>
--------------------
> >
>
I've not noticed incorrect values for "availability start", although I
haven't looked for several months. The feed contains 48 hours of future
programming, might that account for what you are seeing ? Those
programmes are certainly accompanied by a blank "availability end".
mavit wrote:
>
> >
Code:
--------------------
> >
>
>
> + # Entries have been observed where availability end is
blank,
> + # availability start is in the recent past, but the
programme
> + # doesn't exist yet.
> + my $end = str2time($entry->{'broadcast'}->{'end'});
> + if ( $entry->{'availability'}->{'end'} eq '' and
$availStart < $end ) {
> + $log->info("ignoring broadcast made available
before it ended: $title [availStart=$availStart availEnd= end=$end]");
> + next ENTRY;
> + }
> +
> my $duration = $entry->{'broadcast'}->{'duration'};
> my ($min, $hour, $day, $wday) = (localtime($start))[1,2,3,6];
>
>
--------------------
> >
>
In a somewhat similar context, I don't seem to need to check for a blank
"availability end", and I have compared "availability start" with
"broadcast end" plus 10 minutes to allow for a bit of delay in making
the stream available. Perhaps there is no delay in practice.
------------------------------------------------------------------------
mrw's Profile: http://forums.slimdevices.com/member.php?userid=38299
View this thread: http://forums.slimdevices.com/showthread.php?t=109826
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins