mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-16 09:53:36 +02:00
eitd : fix add ExtendedTextCache option
Origin commit data
------------------
Commit: 797fd44a35
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-20 (Wed, 20 Apr 2016)
This commit is contained in:
@@ -182,6 +182,8 @@ void SIevent::parse(Event &event)
|
||||
{
|
||||
int tsidonid = (transport_stream_id << 16) | original_network_id;
|
||||
time_t start_time = parseDVBtime(event.getStartTimeMjd(), event.getStartTimeBcd());
|
||||
extern long int secondsExtendedTextCache;
|
||||
time_t now = time(NULL);
|
||||
|
||||
running = event.getRunningStatus();
|
||||
|
||||
@@ -226,6 +228,8 @@ void SIevent::parse(Event &event)
|
||||
}
|
||||
case EXTENDED_EVENT_DESCRIPTOR:
|
||||
{
|
||||
if(now && secondsExtendedTextCache && start_time > now + secondsExtendedTextCache)
|
||||
continue;
|
||||
const ExtendedEventDescriptor *d = (ExtendedEventDescriptor*) *dit;
|
||||
std::string lang = d->getIso639LanguageCode();
|
||||
std::transform(lang.begin(), lang.end(), lang.begin(), tolower);
|
||||
|
Reference in New Issue
Block a user