aboutsummaryrefslogtreecommitdiff
path: root/c/data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/data.cpp')
-rw-r--r--c/data.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/data.cpp b/c/data.cpp
index dd29ca8..149d9b6 100644
--- a/c/data.cpp
+++ b/c/data.cpp
@@ -116,12 +116,13 @@ void FetchData()
xmlNextElementSibling(xmlNextElementSibling(nodeDate)));
const xmlNodePtr nodeHint = xmlNextElementSibling(nodeSource);
- WcharsFromXmlchars(e.siEp, xmlNodeGetContent(nodeEp));
- e.siEp[wcscspn(e.siEp, L"W")] = 0; /* Remove potential "WPS" suffix. */
- WcharsFromXmlchars(e.title, xmlNodeGetContent(nodeTitle));
WcharsFromXmlchars(d.date, xmlNodeGetContent(nodeDate));
WcharsFromXmlchars(d.source, xmlNodeGetContent(nodeSource));
WcharsFromXmlchars(d.hint, xmlNodeGetContent(nodeHint));
+ e.bTVOriginal = wcsncmp(d.source, L"TV", 2) == 0? 1: 0;
+ WcharsFromXmlchars(e.siEp, xmlNodeGetContent(nodeEp));
+ e.siEp[wcscspn(e.siEp, L"W")] = 0; /* Remove potential "WPS" suffix. */
+ WcharsFromXmlchars(e.title, xmlNodeGetContent(nodeTitle));
/* Retrieve the link to the episode's wiki entry,
* which should be the first (and only) child element