mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 00:11:08 +02:00
chhecking if epgdir directory exists for frequently save
Origin commit data
------------------
Branch: ni/coolstream
Commit: 22399f73e2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-03-24 (Tue, 24 Mar 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2087,7 +2087,7 @@ static void *houseKeepingThread(void *)
|
|||||||
if (*it == '/')
|
if (*it == '/')
|
||||||
d.erase(it);
|
d.erase(it);
|
||||||
}
|
}
|
||||||
writeEventsToFile((char *)d.c_str());
|
writeEventsToFile(d.c_str());
|
||||||
}
|
}
|
||||||
ecount = 0;
|
ecount = 0;
|
||||||
}
|
}
|
||||||
|
@@ -29,8 +29,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include <xmltree/xmlinterface.h>
|
#include <xmltree/xmlinterface.h>
|
||||||
#include <zapit/client/zapittools.h>
|
#include <zapit/client/zapittools.h>
|
||||||
@@ -258,7 +258,7 @@ void readDVBTimeFilter(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void deleteOldfileEvents(char *epgdir)
|
void deleteOldfileEvents(const char *epgdir)
|
||||||
{
|
{
|
||||||
std::string indexname = std::string(epgdir) + "/index.xml";
|
std::string indexname = std::string(epgdir) + "/index.xml";
|
||||||
xmlDocPtr filter_parser = parseXmlFile(indexname.c_str());
|
xmlDocPtr filter_parser = parseXmlFile(indexname.c_str());
|
||||||
@@ -515,8 +515,13 @@ static void write_indexxml_footer(FILE *fd)
|
|||||||
fprintf(fd, "</dvbepgfiles>\n");
|
fprintf(fd, "</dvbepgfiles>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void writeEventsToFile(char *epgdir)
|
void writeEventsToFile(const char *epgdir)
|
||||||
{
|
{
|
||||||
|
struct stat my_stat;
|
||||||
|
if(stat(epgdir, &my_stat) != 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
FILE * indexfile = NULL;
|
FILE * indexfile = NULL;
|
||||||
FILE * eventfile = NULL;
|
FILE * eventfile = NULL;
|
||||||
std::string filename("");
|
std::string filename("");
|
||||||
|
@@ -35,7 +35,7 @@
|
|||||||
#include <zapit/types.h>
|
#include <zapit/types.h>
|
||||||
|
|
||||||
void *insertEventsfromFile(void * data);
|
void *insertEventsfromFile(void * data);
|
||||||
void writeEventsToFile(char *epgdir);
|
void writeEventsToFile(const char *epgdir);
|
||||||
|
|
||||||
bool readEPGFilter(void);
|
bool readEPGFilter(void);
|
||||||
void readDVBTimeFilter(void);
|
void readDVBTimeFilter(void);
|
||||||
|
Reference in New Issue
Block a user