diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-09-02 22:32:13 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-09-02 22:32:13 +0200 |
commit | 6a61946d2e8513d6b37f6777f9739fb8350a9231 (patch) | |
tree | 44592b1351a50bfab3c2fc814f233c5d6cd1f014 /parse.cpp | |
parent | 689cfc10b1f73f6972c408e5973854c70a93b4c8 (diff) | |
download | vdr-plugin-xmltv2vdr-6a61946d2e8513d6b37f6777f9739fb8350a9231.tar.gz vdr-plugin-xmltv2vdr-6a61946d2e8513d6b37f6777f9739fb8350a9231.tar.bz2 |
Added handling of content descriptor
Added tvm2xmltv .xsl and channellist .dist files
Diffstat (limited to 'parse.cpp')
-rw-r--r-- | parse.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -161,11 +161,11 @@ bool cParse::FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const cha int &Season, int &Episode, int &EpisodeOverall, char **EPShortText, char **EPTitle) { -Season=0; -Episode=0; -EpisodeOverall=0; - - // Title and ShortText are always UTF8 ! + Season=0; + Episode=0; + EpisodeOverall=0; + + // Title and ShortText are always UTF8 ! if (!EPDir) return false; if (!Title) return false; if (cEP2ASCII==(iconv_t) -1) return false; @@ -360,6 +360,14 @@ bool cParse::FetchEvent(xmlNodePtr enode, bool useeptext) xevent.SetEventID((tEventID) atol(eq+1)); } } + if (const xmlChar *content=xmlStrstr(node->content,(const xmlChar *) "content")) + { + char *eq=strchr((char *) content,'='); + if (eq) + { + xevent.AddCategory(eq+1); + } + } } if (node->type==XML_ELEMENT_NODE) { |