summaryrefslogtreecommitdiff
path: root/parse.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-04-27 07:14:27 +0200
committerJochen Dolze <vdr@dolze.de>2012-04-27 07:14:27 +0200
commit40889067514769b356eb50d60d6a75889aeb99e3 (patch)
tree186f332caabe653bd458773623bd49739bb10ef2 /parse.h
parentfaab1db375b46658959c22ddbd1977bc1fdeb50b (diff)
downloadvdr-plugin-xmltv2vdr-40889067514769b356eb50d60d6a75889aeb99e3.tar.gz
vdr-plugin-xmltv2vdr-40889067514769b356eb50d60d6a75889aeb99e3.tar.bz2
Added -e parameter for path to episodes dir
Diffstat (limited to 'parse.h')
-rw-r--r--parse.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/parse.h b/parse.h
index 378e901..4c4e7a0 100644
--- a/parse.h
+++ b/parse.h
@@ -29,8 +29,9 @@ class cParse
};
private:
- iconv_t conv;
- char *epdir;
+ iconv_t cep2ascii;
+ iconv_t cutf2ascii;
+ const char *epdir;
const char *epgfile;
cEPGSource *source;
cEPGMappings *maps;
@@ -38,12 +39,13 @@ private:
time_t ConvertXMLTVTime2UnixTime(char *xmltvtime);
bool FetchEvent(xmlNodePtr node);
public:
- cParse(const char *EPGFile, cEPGSource *Source, cEPGMappings *Maps);
+ cParse(const char *EPGFile, const char *EPDir, cEPGSource *Source, cEPGMappings *Maps);
~cParse();
int Process(cEPGExecutor &myExecutor, char *buffer, int bufsize);
static void RemoveNonAlphaNumeric(char *String);
- static bool FetchSeasonEpisode(iconv_t Conv, const char *EPDir, const char *Title,
- const char *ShortText, int &Season, int &Episode);
+ static bool FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const char *EPDir,
+ const char *Title, const char *ShortText, int &Season,
+ int &Episode);
static void InitLibXML();
static void CleanupLibXML();
};