aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-11-25 00:31:52 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-11-25 00:31:52 +0100
commitc2019938ca188bc322e839507c82ec03ee7a9dac (patch)
treea23e0067d2f2933fb4df762e175223278c0abaed
parentb5917be252caf9d38ae9466352c4176ef25732e3 (diff)
downloadEpisodeBrowser-c2019938ca188bc322e839507c82ec03ee7a9dac.tar.gz
Fix episode fetch bug.
Fetched episodes would not be displayed, as the episode count was not updated.
-rw-r--r--c/data.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/c/data.cpp b/c/data.cpp
index 05de840..cf5a38d 100644
--- a/c/data.cpp
+++ b/c/data.cpp
@@ -223,6 +223,9 @@ void FetchData(unsigned char* sig)
WcharsFromXmlchars(d.wiki,
xmlGetProp(nodeLink, reinterpret_cast<const xmlChar*>("href")));
}
+
+ if (nodes->nodeNr > s_window->cfg.cEp)
+ s_window->cfg.cEp = nodes->nodeNr;
}
void FetchScreenwriters(unsigned char* sig)