Mercurial > minori
comparison src/gui/pages/torrents.cc @ 260:dd211ff68b36
pages/seasons: add initial functionality
the menu doesn't work yet, but it's a good start
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 03 Apr 2024 19:48:38 -0400 |
parents | 862d0d8619f6 |
children | 9a04802848c0 |
comparison
equal
deleted
inserted
replaced
259:0362f3c4534c | 260:dd211ff68b36 |
---|---|
155 Strings::RemoveLeadingChars(Strings::ToUtf8String(elements.get(anitomy::kElementEpisodeNumber)), '0')); | 155 Strings::RemoveLeadingChars(Strings::ToUtf8String(elements.get(anitomy::kElementEpisodeNumber)), '0')); |
156 torrent.SetGroup(Strings::ToUtf8String(elements.get(anitomy::kElementReleaseGroup))); | 156 torrent.SetGroup(Strings::ToUtf8String(elements.get(anitomy::kElementReleaseGroup))); |
157 torrent.SetResolution(Strings::ToUtf8String(elements.get(anitomy::kElementVideoResolution))); | 157 torrent.SetResolution(Strings::ToUtf8String(elements.get(anitomy::kElementVideoResolution))); |
158 } | 158 } |
159 | 159 |
160 ParseFeedDescription(Strings::TextifySynopsis(item.child_value("description")), torrent); | 160 std::string description = item.child_value("description"); |
161 Strings::TextifySynopsis(description); | |
162 ParseFeedDescription(description, torrent); | |
161 | 163 |
162 torrent.SetLink(item.child_value("link")); | 164 torrent.SetLink(item.child_value("link")); |
163 torrent.SetGuid(item.child_value("guid")); | 165 torrent.SetGuid(item.child_value("guid")); |
164 { | 166 { |
165 const QString date_str = Strings::ToQString(item.child_value("pubDate")); | 167 const QString date_str = Strings::ToQString(item.child_value("pubDate")); |