1 #include <lib/dvb/metaparser.h>
4 int eDVBMetaParser::parseFile(const std::string &tsname)
6 /* if it's a PVR channel, recover service id. */
7 std::string filename = tsname + ".meta";
9 FILE *f = fopen(filename.c_str(), "r");
18 if (!fgets(line, 1024, f))
20 if (*line && line[strlen(line)-1] == '\n')
21 line[strlen(line)-1] = 0;
23 if (*line && line[strlen(line)-1] == '\r')
24 line[strlen(line)-1] = 0;
29 m_ref = (const eServiceReferenceDVB&)eServiceReference(line);
38 m_time_create = atoi(line);