mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-15 17:33:37 +02:00
eitd : fix add ExtendedTextCache option
Origin commit data
------------------
Branch: ni/coolstream
Commit: 797fd44a35
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2016-04-20 (Wed, 20 Apr 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -182,6 +182,8 @@ void SIevent::parse(Event &event)
|
|||||||
{
|
{
|
||||||
int tsidonid = (transport_stream_id << 16) | original_network_id;
|
int tsidonid = (transport_stream_id << 16) | original_network_id;
|
||||||
time_t start_time = parseDVBtime(event.getStartTimeMjd(), event.getStartTimeBcd());
|
time_t start_time = parseDVBtime(event.getStartTimeMjd(), event.getStartTimeBcd());
|
||||||
|
extern long int secondsExtendedTextCache;
|
||||||
|
time_t now = time(NULL);
|
||||||
|
|
||||||
running = event.getRunningStatus();
|
running = event.getRunningStatus();
|
||||||
|
|
||||||
@@ -226,6 +228,8 @@ void SIevent::parse(Event &event)
|
|||||||
}
|
}
|
||||||
case EXTENDED_EVENT_DESCRIPTOR:
|
case EXTENDED_EVENT_DESCRIPTOR:
|
||||||
{
|
{
|
||||||
|
if(now && secondsExtendedTextCache && start_time > now + secondsExtendedTextCache)
|
||||||
|
continue;
|
||||||
const ExtendedEventDescriptor *d = (ExtendedEventDescriptor*) *dit;
|
const ExtendedEventDescriptor *d = (ExtendedEventDescriptor*) *dit;
|
||||||
std::string lang = d->getIso639LanguageCode();
|
std::string lang = d->getIso639LanguageCode();
|
||||||
std::transform(lang.begin(), lang.end(), lang.begin(), tolower);
|
std::transform(lang.begin(), lang.end(), lang.begin(), tolower);
|
||||||
|
@@ -86,7 +86,7 @@ static bool notify_complete = false;
|
|||||||
|
|
||||||
static unsigned int epg_save_frequently;
|
static unsigned int epg_save_frequently;
|
||||||
static long secondsToCache;
|
static long secondsToCache;
|
||||||
static long secondsExtendedTextCache;
|
long int secondsExtendedTextCache = 0;
|
||||||
static long oldEventsAre;
|
static long oldEventsAre;
|
||||||
static int scanning = 1;
|
static int scanning = 1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user