summaryrefslogtreecommitdiff
path: root/parse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cpp')
-rw-r--r--parse.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/parse.cpp b/parse.cpp
index 011714b..a41a5d4 100644
--- a/parse.cpp
+++ b/parse.cpp
@@ -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)
{