mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 03:49:29 -04:00
FeedReader:
- Added favicon git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6069 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
edd8a2c0ec
commit
3df3850655
12 changed files with 177 additions and 96 deletions
|
@ -906,7 +906,7 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
|
|||
}
|
||||
|
||||
if (feedFormat == FORMAT_ATOM) {
|
||||
/* <author><name>... */
|
||||
/* <author><name>...</name></author> */
|
||||
xmlNodePtr author = xml.findNode(node->children, "author", false);
|
||||
if (author) {
|
||||
xml.getChildText(node, "name", item->author);
|
||||
|
@ -920,7 +920,11 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
|
|||
switch (feedFormat) {
|
||||
case FORMAT_RSS:
|
||||
case FORMAT_RDF:
|
||||
xml.getChildText(node, "description", item->description);
|
||||
/* try content:encoded */
|
||||
if (!xml.getChildText(node, "encoded", item->description)) {
|
||||
/* use description */
|
||||
xml.getChildText(node, "description", item->description);
|
||||
}
|
||||
break;
|
||||
case FORMAT_ATOM:
|
||||
/* try content */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue