mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
eitd : fix add ExtendedTextCache option
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