diff options
| author | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-05-10 19:33:01 +0500 |
|---|---|---|
| committer | Physick <96335032+DegustatorPonos@users.noreply.github.com> | 2026-05-10 19:33:01 +0500 |
| commit | e695a65df9d5a8ee7d5af705c4789e44fbcc0b60 (patch) | |
| tree | b86aaafa8c549f381bd9f76d23174b169b1ce792 /src/RSS.cpp | |
| parent | a14878b4a453f48f3b200481c343a7fc59181b0f (diff) | |
Config support
Diffstat (limited to 'src/RSS.cpp')
| -rw-r--r-- | src/RSS.cpp | 10 |
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(); |
