summaryrefslogtreecommitdiff
path: root/src/RSS.cpp
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-05-10 19:33:01 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-05-10 19:33:01 +0500
commite695a65df9d5a8ee7d5af705c4789e44fbcc0b60 (patch)
treeb86aaafa8c549f381bd9f76d23174b169b1ce792 /src/RSS.cpp
parenta14878b4a453f48f3b200481c343a7fc59181b0f (diff)
Config support
Diffstat (limited to 'src/RSS.cpp')
-rw-r--r--src/RSS.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/RSS.cpp b/src/RSS.cpp
index 275b96c..1282c83 100644
--- a/src/RSS.cpp
+++ b/src/RSS.cpp
@@ -76,6 +76,16 @@ void RSS::parse(std::string contents) {
}
}
+void RSS::print() {
+ channelInfo.print();
+ int i = 0;
+ for (auto entry : Entries) {
+ if (i > 3) break;
+ entry.print();
+ ++i;
+ }
+}
+
RSS_Entry::RSS_Entry(XML_leaf node) {
Title = node.GetChild("title").GetValue();
URL = node.GetChild("link").GetValue();