mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 15:09:33 -05:00
Added patch from AsamK
- Support link in attribute href of the link node, e.g. <link href="..." /> Support author in creator node git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6068 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a96c467419
commit
edd8a2c0ec
@ -876,6 +876,10 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
|
||||
/* try feedburner:origLink */
|
||||
if (!xml.getChildText(node, "origLink", item->link) || item->link.empty()) {
|
||||
xml.getChildText(node, "link", item->link);
|
||||
if (item->link.empty()) {
|
||||
xmlNodePtr linkNode = xml.findNode(node, "link", true);
|
||||
item->link = xml.getAttr(linkNode, "href");
|
||||
}
|
||||
}
|
||||
|
||||
// remove sid=
|
||||
@ -908,7 +912,9 @@ RsFeedReaderErrorState p3FeedReaderThread::process(const RsFeedReaderFeed &feed,
|
||||
xml.getChildText(node, "name", item->author);
|
||||
}
|
||||
} else {
|
||||
xml.getChildText(node, "author", item->author);
|
||||
if (!xml.getChildText(node, "author", item->author)) {
|
||||
xml.getChildText(node, "creator", item->author);
|
||||
}
|
||||
}
|
||||
|
||||
switch (feedFormat) {
|
||||
|
Loading…
Reference in New Issue
Block a user